Is it possible to place radio button as group box header in qml. If yest can you give me some hint how can be done. I saw option to change title to check box but it doesn't feet my solution.
相关问题
- QML: Cannot read property 'xxx' of undefin
- QML: Cannot read property 'xxx' of undefin
- How to use Control.FromHandle?
- QTextEdit.find() doesn't work in Python
- QT Layouts, how to make widgets in horizontal layo
相关文章
- ubuntu20.4中c#通过c++库调用python脚本
- Qt槽函数自动执行多遍
- Is there a non-java, cross platform way to launch
- How to get a settings storage path in a cross-plat
- Why doesn't valgrind detect a memory leak in m
- QTreeView remove decoration/expand button for all
- qt界面拥挤
- Difference between SuspendLayout and BeginUpdate
It's not currently possible to do this with
GroupBox
, as it doesn't offer a styling API. You have these options:checkable
property, which gives you aCheckBox
, not aRadioButton
, as you know.GroupBoxStyle
type and then define your owncheckbox
component that is aRadioButton
. This is private API though, which means it can change at any point.CheckBox
that is produced with thecheckable
property, and filter the events that would go to that checkbox. This is quite difficult, and I'm not sure if it would work.GroupBox
, using the code I linked to above as a starting point.Ok so what I have done based on previous (i hope:)) things is:
What I get is: And I have one more question is there an options to be set to disable opacity on radio button and text
Maybe someone may review this solution and tell me if it is ok.
Update: Additionaly if your add:
Group box looks like:
This solution was done based on Mitch post