QT Designer:将 .ui 文件用于使用 QT Designer 创建的其他组件
我用 QT 设计器创建了一堆小部件。
我想知道的是,这些小部件是否可以与我使用 QT Designer 创建的其他组件一起使用(拖放),而无需导出它们并将它们编译为自定义小部件,因为 .ui 文件似乎已经包含我将使用自定义小部件界面导出大部分功能。
这是可能的吗,或者我是否在考虑使用 Qt Designer 创建的组件如何能够错误地协同工作?
谢谢大家。
I have created a bunch of widgets with QT designer.
What I would like to know is if these widgets can be used (drag and dropped) with other components I create with QT Designer, without having to export them and compile them as a custom widget, since it seems that the .ui file already contains most of that functionality that I would be exporting with the custom widget interface.
Is this possible, or am I thinking about how components created with the Qt Designer can work together wrong?
Thanks all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有。那样不行。您需要完成所有自定义小部件的废话。
不过我通常不会打扰。我只是将我所继承的内容放入设计器中,然后使用“促销”功能。
Nope. Doesn't work that way. You need to do all the custom widget crap.
I don't usually bother though. I just put what I've supclassed from in the designer and then use the "promotion" feature.