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

qt5/examples/widgets/mainwindows/mainwindow

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.1
    • 5.11.3, 5.15.0
    • Examples and Demos
    • None
    • Linux/Other display system
    • f7f50557023f19780f6d08514270b978ca532975 (qt/qtbase/dev) 47fbaf061f32c47ccd5dbbf8b19d695222b21795 (qt/qtbase/5.15)
    • Da Vinci sprint 11

    Description

      Should be reproducible from any platform.  I am using:

      $ qmake -v
      QMake version 3.1
      Using Qt version 5.11.3 in /usr/lib/arm-linux-gnueabihf

      $ uname -a
      Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux

      Found in many versions and seems to be still present in 5.15 (and dev: https://github.com/qt/qtbase/blob/dev/examples/widgets/mainwindows/mainwindow/colorswatch.cpp).   In colorswatch.cpp, void ColorDock::changeSizeHints() the wrong result value is set for accept.  Clicking "OK" does not result in any changes.  Change:

      connect(buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::reject);

      to:

      connect(buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);

      With the update, clicking "OK" allows sizeHint updates.

      Attachments

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

        Activity

          People

            paulwicking Paul Wicking
            rcermak Rob Cermak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes