What is QComboBoxPrivateContainer and why is it appearing in my top level widgets?
-
Hi, I have a
.uifile with an editableQComboBoxwhen I check the topqApp->topLevelWidgets()I get a top level widget with class nameQComboBoxPrivateContainerand no object name or window title. This does not appear if I myQComboBoxis not editable.To reproduce, just add a editable
QComboBoxto the.uifile, fill it with any values if you like and show the top level widgets (on something like push button clicked signal, that's what I am doing):void MainWindow::on_pushButton_clicked() { QWidgetList widList = qApp->topLevelWidgets(); for (auto wid : widList) qDebug() << wid->metaObject()->className() << wid->objectName() << wid->windowTitle(); }The output:
MainWindow "MainWindowClass" "MainWindow" QComboBoxPrivateContainer "" ""The only reference I could find for this class is from Qt 4.8: https://dreamswork.github.io/qt4/classQComboBoxPrivateContainer.html
On Qt Documentation (https://doc.qt.io/) there is no reference to it.
I am just curious as to what it is and if I should just ignore it or is there anything I can do to get it out of my
qApp->topLevelWidgets()list? -
Hi, I have a
.uifile with an editableQComboBoxwhen I check the topqApp->topLevelWidgets()I get a top level widget with class nameQComboBoxPrivateContainerand no object name or window title. This does not appear if I myQComboBoxis not editable.To reproduce, just add a editable
QComboBoxto the.uifile, fill it with any values if you like and show the top level widgets (on something like push button clicked signal, that's what I am doing):void MainWindow::on_pushButton_clicked() { QWidgetList widList = qApp->topLevelWidgets(); for (auto wid : widList) qDebug() << wid->metaObject()->className() << wid->objectName() << wid->windowTitle(); }The output:
MainWindow "MainWindowClass" "MainWindow" QComboBoxPrivateContainer "" ""The only reference I could find for this class is from Qt 4.8: https://dreamswork.github.io/qt4/classQComboBoxPrivateContainer.html
On Qt Documentation (https://doc.qt.io/) there is no reference to it.
I am just curious as to what it is and if I should just ignore it or is there anything I can do to get it out of my
qApp->topLevelWidgets()list?