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

qproperty-icon in QToolBarExtension does not work always

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.9.1, 5.9.2
    • Widgets: Style Sheets
    • None
    • Qt 5.9.1 x64
      Windows 10

    Description

      See attached .ui file including the stylesheet in it.

      I have multiple toolbars within a ui file. Each Toolbar contains some toolbuttons, when these doesn't fit into the toolbar, an arrow is shown. this arrow can be overwritten by stylesheet.

      The background-color property works always.
      The icon property doesn't work always (see screenshots)
      So sometimes when dragging in and out, the icon is shown sometimes not

      stylesheet:
      
      QToolBarExtension {
       background-color: blue;
       qproperty-icon: url(:/arrowRight.svg);
       }
      

       

      Additionally, it would be satisfying to set another icon for the vertical toolbar arrow.

      Attachments

        1. arrowRight.qrc
          0.1 kB
        2. arrowRight.svg
          0.6 kB
        3. QToolBarExtensionBug.ui
          4 kB
        4. UI_correct.jpg
          UI_correct.jpg
          31 kB
        5. UI_wrong.jpg
          UI_wrong.jpg
          36 kB
        6. UI_wrong2.jpg
          UI_wrong2.jpg
          34 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            jirauser46025 user-3dfd7 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes