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

If QMainWindow::setToolButtonStyle() is called before constructing QToolButton, the style is ignored

    XMLWordPrintable

Details

    Description

      The attached project ToolButtonStyleBug.zip can reproduce the bug.

      1.) Build and run the program.
      2.) Notice that the icon has been successfully set to size (500, 500), but the text is not displayed under the icon. At the same time, the Debug() prints the ToolButtonStyle of MainWindow 3 which means Qt::ToolButtonTextUnderIcon.
      3.) To further demonstrate the bug, click the “Click me!” Button.
      4.) Notice that this time, both the tool button style and the icon size are successfully modified.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            nigel.lu Nigel Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes