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

[REG Qt 4.8.7 -> Qt 5.3.1] Trivial correct code produces error message from QWindowsWindow::setGeometryDp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P1: Critical P1: Critical
    • None
    • 5.3.1, 5.4.2, 5.5.0
    • None
    • Windows 7 64 bit
      MSVC2010, MSVC2013

      Build and run this simple program:

      #include <QApplication>
      #include <QLabel>
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
          QLabel l;
          l.show();
          app.exec();
      }
      

      You'll get the following error message:

      QWindowsWindow::setGeometryDp: Unable to set geometry 5x13+520+265 on QWidgetWindow/'QLabelClassWindow'. Resulting geometry:  116x13+520+265 (frame: 8, 30, 8, 8, custom margin: 0, 0, 0, 0, minimum size: 0x0, maximum size: 16777215x16777215).
      

      Although the label seems to show up correctly, showing a tooltip afterwards will fail:

      QToolTip::showText(QPoint(120,200), "TT");
      

      The tooltip will just not show up.

      Such short and correct code should neither produce an error message nor break the showing of other windows. With Qt 4.8.7 this works correctly.

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

            kleint Friedemann Kleint
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes