Re: [Interest] [PySide] QListView - make tab key behave like enter key

2019-03-19 Thread Frank Rueter | OHUfx
well, for those who run into the same issue: The key was to override the view's closeEditor event, check for the incoming hint (QAbstractItemDelegate.NoHint when the tab key is pressed) and fire off QListView.closeEditor(self, editor, QtWidgets.QAbstractItemDelegate.SubmitModelCache) manually.

[Interest] QTest

2019-03-19 Thread Jérôme Godbout
Hi, I run qTest::exec() to run my test but I would like to known if it's possible to recover the number of failure/pass/skipped to do some work after the qTest::exec(), here is code sample of what I would like to do: /***/ int rv = qTest::exec(); int nb_success = qTest::???(); int

[Interest] QWizard - can't register a field with a custom property

2019-03-19 Thread Frank Rueter | OHUfx
Hi all, In a QWizard page I am trying to register a field with a widget’s custom property to supply the desired field value but I can’t get it to work. This is the line I am using to register the field and to link it to the signal that informs the field to update it’s value:

Re: [Interest] Unable to build Qt 5.12 on Ubuntu 14.04

2019-03-19 Thread Thiago Macieira
On Tuesday, 19 March 2019 09:40:42 PDT Calogero Mauceri wrote: > Hi all, > > I'm trying to build Qt 5.12.2 on Ubuntu 14.04. > I get the following error just after I launch the configure > > ERROR: Feature 'xcb' was enabled, but the pre-condition 'features.thread && > features.xkbcommon &&

Re: [Interest] Qt::GlobalColor to pixel value

2019-03-19 Thread Christoph Feck
On 03/19/19 19:25, Jason H wrote: What is the simplest way to go from: QList pallette {Qt::black,Qt::red,Qt::darkRed,Qt::green,Qt::darkGreen,Qt::blue,Qt::darkBlue,Qt::cyan,Qt::darkCyan,Qt::magenta,Qt::darkMagenta,Qt::yellow,Qt::darkYellow}; To a pixel QRgb? image.setPixel(x,y, pallette[5]);

[Interest] Qt::GlobalColor to pixel value

2019-03-19 Thread Jason H
What is the simplest way to go from: QList pallette {Qt::black,Qt::red,Qt::darkRed,Qt::green,Qt::darkGreen,Qt::blue,Qt::darkBlue,Qt::cyan,Qt::darkCyan,Qt::magenta,Qt::darkMagenta,Qt::yellow,Qt::darkYellow}; To a pixel QRgb? image.setPixel(x,y, pallette[5]); The .toRgb() of QColor does not

[Interest] Unable to build Qt 5.12 on Ubuntu 14.04

2019-03-19 Thread Calogero Mauceri
Hi all, I'm trying to build Qt 5.12.2 on Ubuntu 14.04. I get the following error just after I launch the configure ERROR: Feature 'xcb' was enabled, but the pre-condition 'features.thread && features.xkbcommon && libs.xcb' failed. here is the configure line I'm using ./configure -qt-zlib

Re: [Interest] Interest Digest, Vol 89, Issue 32

2019-03-19 Thread Roland Hughes
To further add to the documentational mud https://doc.qt.io/archives/qt-4.8/qlayout.html#addWidget void QLayout::addWidget(QWidget * w) Adds widget w to this layout in a manner specific to the layout. This function uses addItem(). Putting it in human terms: You are the parent of your

Re: [Interest] Taking back a widget from a QBoxLayout?

2019-03-19 Thread Roland Hughes
Not a troll but willing to take a bit of a stab. If one is removing a widget from a layout it's generally to reparent it. You needed to copy the line above the note. --- Removes the widget /widget/ from the layout. After this call, it is the caller's responsibility to give the widget a