Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Issue with Windows Style - PySide2 / QML

Issue with Windows Style - PySide2 / QML

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 199 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Charles-Elie
    wrote on last edited by
    #1

    Hi all,

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

    ToolButton{
            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
    2b1e005b-93fb-4611-a5b9-e397a624dd05-image.png

    With Windows Style
    5425a817-815d-4157-a850-21938ec9c345-image.png

    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.

    Charles-Elie

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved