Skip to content

Qt DetailedList: Draw action buttons #4097

@johnzhou721

Description

@johnzhou721

Describe the bug

Qt's DetailedLists currently uses context menus to draw actions, which is against KDE guidance:

https://community.kde.org/Get_Involved/Design/Frequently_Discussed_Topics#Context_menus_are_not_enough

Steps to reproduce

Run the detailedlist example

No buttons, only right-clicks

Expected behavior

Primary and secondary buttons drawn in each row of the widget, with refresh with a button bar on top.

Screenshots

No response

Environment

  • Operating System:
  • Python version:
  • Software versions:
    • Briefcase:
    • Toga:
    • ...

Logs


Additional context

Originally discussed at #4021.

I think a button bar included with the widget still makes sense without being part of the toolbar, especially when the amount of bars can end up like this on a KDE app:

Screenshot 2026-01-18 at 21 04 24

All that is to say number of bars is not a huge concern.

Example of actions drawn in row:

Image

Example of Refresh in a button bar:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA crash or error in behavior.linuxThe issue relates Linux support.not quite rightThe idea or PR has been reviewed, but more work is needed.qtThe issue relates to Qt support

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions