QComboBox - different behavior in linux & windows
-
Hi all,
following problem:
I have custom QtWebKit based browser for specified Web-software(CRM) which works on linux and windows. But there is one annoying thing what makes this software look crappy on windows... CRM has some select boxes on it, select elements of such select boxes are longer then select box size, it is no problem for all other browsers... But in my custom browser it works correctly only on linux, on windows all elements of select box are elided to fit the box size and it looks like that then:linux:
!http://xplatforms.de/qt_combo1.jpeg(QComboBox on linux)!windows:
!http://xplatforms.de/qt_combo2.jpeg(QComboBox on windows)!Take a look at "MiddleElide" on windows...
How can I fix this issue? Has anyone idea?
Can I somehow disable default ElideMode of QComboBox? -
@moderators: I don't think it is WebKit specific... Same behavior is true for simple widget with QComboBox...
-
[quote author="Andre" date="1363377711"]I moved it to webkit, because that is where you show the issue. Please verify and show in a short sample the issue using widgets outside of the context of webkit if you think it is more specific.
Also, please check if it might be a style issue.[/quote]
Simple MainWindows with QComboBox and some string elements:
windows:
!http://xplatforms.de/qt_combo3.jpeg(QComboBox windows)!linux:
!http://xplatforms.de/qt_combo4.jpeg(QComboBox linux)!Like I said: it is not WebKit specific... but in simple widget-application I can change ElideMode of combobox in UI file or in constructor of parent widget for example, but i can't do it if combobox was created dynamically with WebKit engine, I even do not know if any comboboxes was created... and running loops to find widgets with QComboBox class is not the right approach...
Any idea how to disable it application-wide without patching Qt? And why it is different on linux and windows at all?
-
Hmm, if I set ElideMode of QComboBox View widget to ElideNone the popup widget with elements still has same width like the qcombobox itself....
P.S.: funny what Qt docs says what default ElideMode is ElideRight, it is not.. it is ElideMiddle...