Skip to content

No checked hint of checkable actions inside menu entries #338

@mgrojo

Description

@mgrojo

Describe Your Environment

[Versions from your environment]

  • QDarkStyle: v3.2.1
  • OS: Ubuntu 22.04.3 LTS
  • Python: N/A

Language

C++

Description / Steps to Reproduce [if necessary]

Place a checkable action in a menu. Check and uncheck the entry.

Actual Result

There is no display hint about whether the menu entry is checked or not.

image

Expected Results / Proposed Result

Clear indication of the checked entries, like in the default style:

image

Relevant Code [if necessary]

Related UI definition in DB Browser for SQLite:
https://github.com/sqlitebrowser/sqlitebrowser/blob/e77ae65c11a44c00489596120aff990e4df0a9d4/src/MainWindow.ui#L823

     <string>&amp;View</string>
    </property>
    <addaction name="viewDBToolbarAction"/>
    <addaction name="viewExtraDBToolbarAction"/>
    <addaction name="viewProjectToolbarAction"/>
    <addaction name="separator"/>
   </widget>
  <action name="viewDBToolbarAction">
   <property name="checkable">
    <bool>true</bool>
   </property>
   <property name="icon">
    <iconset resource="icons/icons.qrc">
     <normaloff>:/icons/toolbar</normaloff>:/icons/toolbar</iconset>
   </property>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions