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
Forum Updated to NodeBB v4.3 + New Features

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 903 Views 1 Watching
  • 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 8 Nov 2021, 15:27 last edited by Tudal 11 Sept 2021, 13:41
    #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
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 8 Nov 2021, 16:24 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 9 Nov 2021, 08:52 last edited by Tudal 11 Sept 2021, 11:09
        #3

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

        Windows10.png

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 9 Nov 2021, 16:07 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 15 Nov 2021, 14:16 last edited by
            #5

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

            1 Reply Last reply
            1

            2/5

            8 Nov 2021, 16:24

            • Login

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