Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12490

QWidget::mapToGlobal() and mapFromGlobal not working in some conditions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.7.0
    • Widgets: Main Window
    • None
    • Qt/X11, built from sources on OpenSuse 11.2, happens with both X11 and raster graphics systems

    Description

      when a qwidget is created and its geometry is set programmatically, mapToGlobal and mapfromglobal return incorrect values.
      the attached test case shows the problem.
      with it i get the following output:

      QRect(0,0 640x320) QPoint(0,0) QPoint(0,0)
      QRect(100,100 100x100) QPoint(104,123) QPoint(0,0)

      while the second line should be:
      QRect(100,100 100x100) QPoint(100,100) QPoint(-100,-100)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            notmart Marco Martin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes