Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
qcombobox drop-down list appears separately(QMDIArea and QMDISubwindow)
I am facing a strange issue with qcombobox. The drop-down item's list is appearing separately elsewhere.
Any help...what is causing this issue?
Is that a plain QComboxBox ?
I mean, no subclassing or stylesheet applied to it ?
No it's a simple qcombobox
And no stylesheets ?
What platform and Qt version ?
I never saw this before.
No stylesheet applied on the qcombobox.
Windows 10 and Qt 5.14.2
Ok. same as me.
Does this happen if you create a clean GUI project and inset a Combobox?
@mrjj no ...normally it's ok.
Actually, this qcombobox is an element in an qwidget(say, output NavControls.dll)
This dll, I use in a viewerWidget, which is added in an qmdiArea.
Other qcombobox in the same NavControls used in other viewer works fine.
For what reasons this issue likely occurs...like you asked for stylesheet...so that I can look in those areas. I also faced this issue first time.
So its just one Combobox that does it ?
The other viewers are also added to qmdiArea ?
@mrjj 2 combobox in this viewer behaves like this
qcombobox in other viewer is working perfectly.
So it would be fair to assume it has something to do with this viewer.
You have to try to reduce it until the combo works again.
I have no suggestion as to the cause of this as the other combo boxes works and
they all live in the same DLL and also put in MDIAreas.
Do you have multiple monitors on ?
Pl45m4 last edited by Pl45m4
2 combobox in this viewer behaves like this
Are these two the "Pulse" comboBox and the "None" comboBox on the right?
What happens, if you move them somewhere else, e.g. to the middle of same widget where they dont overlap the MdiArea. Same behavior then?!
I have no fix but I think, I know why / what is going on.
The issue could be the coordinate systems / widget positions on main window or widget (your QMdiArea).
Do you move something by using code?
Does your widget have a parent?
@mrjj no multiple monitors...my laptop is set to PC screen only
No code for moving
Actually it has a parent ..a form class.
I have used this lib as in the link.
I am also trying look in mdiArea ,as the viewers are qmdisubwindow
Pl45m4 last edited by
Same behavior when you place the same comboBoxes somewhere else on your widget? If there is no issue, then it must be a painter or coordinate mapping issue. Could be a bug.
@Pl45m4 I'll try this...changing it's position
This post is deleted!