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

QColorDialog::getColor - window size affected by previous dialog

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.7.0
    • 4.6.3
    • (Inactive) Maemo 5
    • None
    • 381d1a5dba69d38487259d0be387348719c5996d

    Description

      After showing a QMessageBox the next time you call QColorDialog::getColor the window size will be slightly taller than the QMessageBox, if you call QColorDialog::getColor the window size will get even taller.. by the 3rd or 4th time you call QColorDialog::getColor the window will actually be the "standard" size (about 400px tall on landscape mode).

      pseudo-code:

      // ....

      QMessageBox::warning(parent, "title", "short text");
      QColorDialog::getColor( ... ) // a little taller than the previous window
      QColorDialog::getColor( ... ) // a little taller than the previous window
      QColorDialog::getColor( ... ) // a little taller than the previous window

      it seems that if I call getColor without having showed a smaller dialog first with the same parent that it will start with a "good" height

      See attached screenshots

      Attachments

        Activity

          People

            fernenge Harald Fernengel
            fcrochik Felipe Crochik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: