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

Can't get minimum size of QWindow including frame

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6
    • GUI: Window management
    • None
    • Windows 10

    • Windows

    Description

      Looking at the QWindow documentation page here:

      https://doc.qt.io/qt-6/qwindow.html

      I'm not able to find how to get the minimum size of a window including the frame/title bar.

      In a very simple C++ example like this:

      #include <QWindow>
      #include <QApplication>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QWindow w;
          w.show();
          return a.exec();
      }
      

      I want to be able to get an attribute on the QWindow that tells me the minimum size including the title bar.

      I noticed I'm only able to scale the window to a certain size (approx. 120px x 30px), but I'm not sure why exactly.
       

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            brycegbrazen Bryce Gattis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes