← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1671853] [NEW] incorrect screen number reported by QDesktopWidget

 

Public bug reported:

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

** Affects: qtbase-opensource-src (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, 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:
  New

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