How to only expand one QFormLayout of the CollapsibleButton which is operating?
就像@lassoan做的很多插件那样,要用ctk.ctkWorkflow(), stepbystep 不错,可是参数的传递有点麻烦,可能我理解的不够啊,我问这个问题是想实现单一GUI实现我的插件,我觉得这个CollapsibleButton或者可以实现我的想法,哪位大神帮帮忙呢?
Just like some plugins made by my great god @lassoan, you need to use ctk.ctkWorkflow(), stepbystep is good, but the parameter transfer is a bit troublesome, maybe I don’t understand enough, I asked this question to implement a single GUI to implement my plugin, I I think this CollapsibleButton can perhaps realize my idea, which great god can help me?
–from Google translator
I would recommend placing the collapsible buttons into a QButtonGroup
and enable exclusive
property. See for example here:
I don’t particularly like ctkWorkflowWidget
because it is complicated yet it is not powerful or flexible enough. The main problem is that the widget does not let users to jump to any step but forces them to click Back/Next many times, which can be frustrating. It is also quite complicated for developers to define all the state transitions; and it does not support hierarchical state machines, while in reality most workflows are like that (you have states and sub-states within them). In contrast, while using a set of collapsible buttons is not very sophisticated, it is very simple for both users and developers.
Great! Thank you very much!
太棒了, 谢谢大神!!