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

ToolButton not always repainted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.10.0, 5.10.1
    • None
    • macOS 10.13.3, Xcode 9.2, Qt 5.10.0 and Qt 5.10.1. bug appears in few clicks.

      Windows 10, MSVC 2017 and MinGW 5.3.0, Qt 5.10.1 - not reproducible

      Linux, Ubuntu 16.04, GCC 5.4.0, Qt 5.10.1 (compiled by myself) - not reproducible

    Description

      ToolButton not always repainted (or partially repainted) after icon change. See attached screenshots (worst cases, in other bad cases icon just not changed).

      Bug is unstable, minimal app with pretty good reproducible rate is attached. Few notes:

      • bug disappear after removing any widget from layout
      • higher reproducibility observed when ComboBox is present on the form
      • form layoutSizeConstraint must be set to SetFixedSize
      • not reproducible with horizontal layout

      calling toolbutton->repaint() right after toolbutton->setIcon() resolves the issue. calling toolbutton->update() has no effect (bug is reproducible)

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nick-korotysh Nick Korotysh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes