summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc/src
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2023-03-22 11:09:41 +0100
committerAxel Spoerl <axel.spoerl@qt.io>2023-03-28 08:59:53 +0000
commitdf0b661bfc015bfe3eaeed3e811d63c91929e61c (patch)
treee3a400ec049bec4fedaf823444b62afb03ab28f4 /examples/widgets/doc/src
parente7cb3cb041dc11001cccf4307d1f9e46a2926821 (diff)
Explicitly propagate screen to QComboBoxListView constructor
QComboBoxListView is constructed without a parent. It therefore inherits the current screen, which normally is the screen on which the related QComboBox is located. With two identical screens in Windows, that can lead to the popup showing on the wrong screen. The issue occurs, when the other screen is found before the right one. This patch calls setScreen() in the constructor, to explicitly inherit the screen from the combobox, if a valid pointer is passed. Fixes: QTBUG-106099 Pick-to: 6.5 6.2 5.15 Change-Id: Ic6679cfd59291092294d2cc75632a5485c2529b7 Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'examples/widgets/doc/src')
0 files changed, 0 insertions, 0 deletions