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. QTBUG-6112.zip
          1 kB
          Mikko Tasa
        2. Shot(01).png
          22 kB
          Janne Anttila
        3. Shot(02).png
          26 kB
          Janne Anttila
        4. Shot.png
          35 kB
          Janne Anttila
        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