Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Checkable QAction with icon does not show state on Windows 11 with qwindowsvistastyle

Checkable QAction with icon does not show state on Windows 11 with qwindowsvistastyle

Scheduled Pinned Locked Moved Solved General and Desktop
qactioncheckablestylewindowsvista
5 Posts 2 Posters 813 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.
  • T Offline
    T Offline
    Tudal
    wrote on last edited by Tudal
    #1

    Hi,

    Our app is built with Qt 5.15.2, and we found some weird issue with qwindowsvistastyle on Windows 11. We noticed that checkable action with an icon do not show the check state in a menu. We found this in a toolbar's menu, but we managed to reproduce it in the menu bar as well. We were able to reproduce this in Qt Application example by adding this to mainwindow.cpp :

    openAct->setCheckable(true);
    openAct->setChecked(true);
    

    It gives the following result with qwindowsvistastyle :

    ToolbarWithStyle_OK.png
    MenuWithStyle_KO.png

    Without qwindowsvistastyle :

    ToolbarWithout_OK.png
    MenuWithoutStyle_OK.png

    I'm wondering if some configuration or code tweaks could fix this, but I have no clue. If this is only an internal Qt bug, could it be fixed as part of the 5.15 LTS ?

    Is there also a way to show the checked state next to the icon ?

    Thank you in advance,

    Tudal

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Do you have to same problem on Windows 10?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Tudal
        wrote on last edited by Tudal
        #3

        Everything is fine on Windows 10, as you can see here :

        Windows10.png

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then something must changed between Win 10 and 11 - please open a bug report for it.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • T Offline
            T Offline
            Tudal
            wrote on last edited by
            #5

            Issue can be found here : https://bugreports.qt.io/browse/QTBUG-98354

            1 Reply Last reply
            1

            • Login

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