“变形为”有什么用?在qt中?
在qt gui编辑器中,任何gui组件都可以变形为某种类型的其他gui组件。但实际上,这个选项的实际用途是什么?可以动态完成吗?如果是,那么这样做的好处是什么?
In qt gui editor, any gui component can be morphed into certain type of other gui components. But realistically speaking what is the practical use of this option? can it be done dynamically? if yes then what is the advantage of doing that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际用途是快速将小部件转换为其他类似的小部件。
假设您有一个包含一些小部件的组框,并且您意识到您更想要一个选项卡小部件。如果没有变形,您将需要
选项卡小部件的
只需将组框转变为选项卡小部件即可更快、更方便。
或者假设您有一些复选框并意识到这些选项是互斥的,那么您可以简单地将它们转变为单选按钮。
等等...
这是一个方便的工具。
The practical use is to quickly convert widgets into other, similar widgets.
Let's say you have a group box filled with some widgets and you realize that you rather want a tab widget. Without morphing you would need to
of your tab widget
Simply morphing the group box into a tab widget is faster and more convenient.
Or let's say you have some check boxes and realize that the options are mutually exlusive, then you can simply morph them to radio buttons.
Etc...
It's a convenience tool.