My knowledge of PyQt6 is limited. I can't figure how to bold part of a string passed to a QAction. Other widgets support rich text, so it's easy with them, but QAction does not. It's like I want to pass "only part of this string should be bolded" to a QAction.
Can that be done? I got nothing on how to do it.
EDIT:
In the spirit of rubber duck debugging, I had an idea. Can I pass a QLabel (which does support rich text) to a QMenu as an action? I think so via QWidgetAction. I'm gonna try. Let me know if I'm wrong.
Can that be done? I got nothing on how to do it.
EDIT:
In the spirit of rubber duck debugging, I had an idea. Can I pass a QLabel (which does support rich text) to a QMenu as an action? I think so via QWidgetAction. I'm gonna try. Let me know if I'm wrong.