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

QDialog: Placement and size

    XMLWordPrintable

Details

    Description

      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()));
      }

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes