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

qt5/examples/widgets/mainwindows/mainwindow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.11.3, 5.15.0
    • Fix Version/s: 5.15.1
    • Component/s: Examples and Demos
    • Labels:
      None
    • Platform/s:
      Linux/Other display system
    • Commits:
      f7f50557023f19780f6d08514270b978ca532975 (qt/qtbase/dev) 47fbaf061f32c47ccd5dbbf8b19d695222b21795 (qt/qtbase/5.15)
    • Sprint:
      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

            Assignee:
            paulwicking Paul Wicking
            Reporter:
            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