QT Designer:将 .ui 文件用于使用 QT Designer 创建的其他组件

发布于 2024-10-09 21:18:39 字数 209 浏览 0 评论 0原文

我用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九歌凝 2024-10-16 21:18:39

没有。那样不行。您需要完成所有自定义小部件的废话。

不过我通常不会打扰。我只是将我所继承的内容放入设计器中,然后使用“促销”功能。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文