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

Initial default window size incompatibility for Xcb

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P1: Critical
    • None
    • 6.5.0 Beta1
    • QPA: X11/XCB
    • None
    • Linux/X11

    Description

      I noticed an incompatibility between Qt 6.5 and earlier version. My code does something like this:

      void MyWindow::event( QEvent* event ) override
      {
          if ( event->type() == QEvent::Show && size().isEmpty() )
              // setting some default size ...
      
      }
      

      The basic idea of this code is to set a default size when the application code did not assign something explicitly.

      With Qt 6.5 the following line has been added in qxcbwindow.cpp line 269:

      QPlatformWindow::setGeometry(rect);
      

      what happens before sending the Show event.

      In earlier Qt versions a window gets also initialized to same default size, but later.

      Attachments

        1. main.cpp
          0.4 kB
        2. QTBUG-110493.tar.gz
          0.8 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-110493
          # Subject Branch Project Status CR V

          Activity

            People

              axelspoerl Axel Spoerl
              uwe Uwe Rathmann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes