作者:zx15899966868 | 来源:互联网 | 2023-05-17 14:21
IambuildingaUIwithQTdesignerandwantbuttonstoperformdifferentactionswithdifferentmod
I am building a UI with QT designer and want buttons to perform different actions with different modifiers. So I thought I could call functions with dynamic string properties that would perform the action depending on the modifier.
我正在使用QT设计器构建UI,并希望按钮使用不同的修改器执行不同的操作。所以我认为我可以使用动态字符串属性来调用函数,这些属性将根据修饰符执行操作。
If anyone knows a simpler way to do this I would appreciate it very much.
如果有人知道更简单的方法,我会非常感激。
2 个解决方案