https://bugs.kde.org/show_bug.cgi?id=525806

            Bug ID: 525806
           Summary: Icons specified via `icon.source` are not rendered
    Classification: Frameworks and Libraries
           Product: Union
      Version First unspecified
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: QtQuick Output
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
`Button`, `RoundButton`, `MenuItem` and potentially more item types don't
render icons specified via `icon.source` (despite using `display:
AbstractButton.TextBesideIcon` or `display: AbstractButton.IconOnly`). They do
render icons specified via `icon.name`, so this is really just about
`icon.source`.

Styles provided by Qt (e.g. Material and Fusion) render icons specified via
`icon.source` in the same application correctly - so I don't think this is an
issue with my code.

STEPS TO REPRODUCE
1. Create an application using Qt Quick Controls using one of the mentioned
types and specify an icon via `icon.source`.
2. Launch the app with a style provided by Qt to verify that the icon is
displayed.
3. Launch the app with the Union style.

OBSERVED RESULT
The icon is not displayed. in step 3.

EXPECTED RESULT
Icons from an arbitrary image provider are displayed when specified via
`icon.source` on items that support this property.

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window): Arch Linux with KDE-Unstable repository
KDE Plasma Version: 6.7.90
KDE Frameworks Version: 6.30.0
Qt Version: 6.12.0beta4

ADDITIONAL INFORMATION
The Breeze/Desktop styles rendered those icons at least on  `RoundButton` and
`MenuItem`. So perhaps the code from these styles can be reused here.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to