Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.4.0
-
None
-
Windows 10, Qt 6.4, VS2022
Description
To reproduce, create a combo box and apply the following stylesheet:
QComboBox { color: white; background-color: black; margin: 10px; } QComboBox QAbstractItemView { color: white; background-color: black; margin: 10px; }
Set these window flag:
ui.comboBox->view()->window()->setWindowFlags( Qt::Popup | Qt::FramelessWindowHint |Qt::NoDropShadowWindowHint); ui.comboBox->view()->window()->setAttribute(Qt::WA_TranslucentBackground);
How it looks:
The menu is visible with her "full width" before the margin is applied.
Why it didn't became visible only after the stylesheet is applied? Then this weird behavior wouldn't be noticeable.