Issue with Windows Style - PySide2 / QML

  • Hi all,

    I have a little issue with Windows style and icon in QML ToolBar. Here an example of my code :

            display: AbstractButton.IconOnly
            action: actionNew
    Action {
            id: actionNew
            text: qsTr("New Project")
            icon.source: "../icons/newDoc_2.png"

    With Fusion style, the icon appear correctly. But if I choose Windows style, the icon become all black.

    With Fusion Style

    With Windows Style

    I tried a lot modifications of my code : height, file type of icon, ... but I can't get a correct result.
    Have you an idea ? Could you help me ?

    Thank in advance.


Log in to reply