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.
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
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:
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 &&
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]);
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
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
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
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