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

            Bug ID: 433433
           Summary: Components that use StylePrivate.StyleItem to render
                    content can't handle icon.source
           Product: frameworks-qqc2-desktop-style
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: notm...@gmail.com
          Reporter: n...@kde.org
                CC: ahiems...@heimr.nl, k...@davidedmundson.co.uk
  Target Milestone: ---

This is because the base QWidgets component that's being called can only
support taking an icon string, not a URL. As a result, using icon.source
produces no result in Button, ToolButton, RoundButton, CheckBox, and MenuItem.

Simple test case:


import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.13

Item {
    implicitWidth: 400
    implicitHeight: 400

    ColumnLayout {
        anchors.centerIn: parent

        Button {
            Layout.alignment: Qt.AlignHCenter
            text: "I wish I had an icon"
            icon.source: "https://dl.flathub.org/repo/logo.svg";
        }

        Button {
            Layout.alignment: Qt.AlignHCenter
            text: "Look at my beautiful icon"
            icon.name: "edit-bomb"
        }
    }
}

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

Reply via email to