在 QT 中,我们是否可以在没有类的情况下为 ui 表单发出信号?

发布于 2024-10-02 11:58:58 字数 251 浏览 0 评论 0原文

我们正在开发一个 UI 应用程序,其中我们将为用户提供一个定制的 QT 设计器。然后,用户可以使用拖放功能创建表单,该功能会为表单生成常规 .ui 文件。用户会将一些功能与信号链接起来,例如按下按钮、选择复选框等。

机器上会有一个守护进程,它会从某个地方获取一些数据。

现在的问题是守护进程能否在UI文件中指定的位置调用适当的信号,条件是没有UI文件与c++/头文件关联。

如果没有的话如何使用 UIC 来做到这一点。

问候

We are developing a UI application wherein we would be giving the users a customised QT designer. The users would then create forms using drag and drop functionality which generates a regular .ui file for the form. The user would link some functionalities with signals, like button press, checkbox select, etc.

There would be a daemon process on the machine which would get some data from somewhere.

Now the question is can the daemon process invoke the appropriate signal in the specified in the UI file, the condition is that no UI file is associated with c++ / header file.

If not how to do it using UIC.

Regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

爱你是孤单的心事 2024-10-09 11:58:58

QUILoader 是您的朋友:

QUiLoader 类启用独立
动态创建的应用程序
用户界面在运行时使用
存储在 UI 文件中的信息或
在插件路径中指定。

QUILoader is your friend :

The QUiLoader class enables standalone
applications to dynamically create
user interfaces at run-time using the
information stored in UI files or
specified in plugin paths.

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