"Backporting" the QDesktopWidget::screenNumber(QWidget*) function from qtbase HEAD helped for this particular problem. Packages with an extra patch (debian/patches/multiscreen-MET.diff) are available on launchpad: ppa:met-norway/updates-met
While the main problem is solved, the popups are still placed completely on one screen even if the combobox spans two screens. This is maybe a rather unusual window placement. Solving this probably requires changes to QDesktopWidget (screen number from widget corner) and QComboBox (popup placement such that it may span adjacent screens while still being completely visible without gap) and maybe other popups (QMenu?). -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to qtbase-opensource-src in Ubuntu. https://bugs.launchpad.net/bugs/1671853 Title: incorrect screen number reported by QDesktopWidget Status in qtbase-opensource-src package in Ubuntu: Confirmed Bug description: Hi, we have a problem with combobox popups showing up on the wron screen. The system setup is: two displays à 1920x1200, one desktop, unity, xenial. On this system, the problem can be reproduced by running the stylesheet example from qtbase5-examples: start /usr/lib/x86_64-linux-gnu/qt5/examples/widgets/widgets/stylesheet/stylesheet move the main window to screen 2 click "edit style..." in the menu to open the style editor move the style editor to screen 1 click on the combo box the popup shows on the very left of screen 2, even if the combobox is on screen 1 Actually the popup seems to always show up on the screen with the mainwindow. The problem seems to be that the patch debian/patches/multiscreen.diff does not work in this situation, it makes QApplication::desktop()->screenNumber(..combobox..) return the wrong screen. As far as I can tell, both the code for QDesktopWidget::screenNumber(const QWidget*) from the 5.5 and dev branches in Qt return the correct screen number in our situation. We would appreciate if debian/patches/multiscreen.diff could be updated. Best regards, Alexander To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1671853/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp