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

QDialog: Placement and size

XMLWordPrintable

      I have a custon widget inherited from QDialog, which is modal and displayed on top of current widget.

      Note dialog is painted correnctly, but when orientation is changed the size is not updated

      In landscape mode the dialog is as width the screen is, should it be from the left to the border of CBAs?

      If it is bug, the the following workaround fixes that:

      QSize MyDialog::sizeHint() const
      {
      return QSize(width(), heightForWidth(width()));
      }

        1. Shot(02).png
          Shot(02).png
          26 kB
        2. Shot(01).png
          Shot(01).png
          22 kB
        3. Shot.png
          Shot.png
          35 kB
        4. QTBUG-6112.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            mtasa Mikko Tasa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes