Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 Qt-creator 中创建 QDialog,例如 QForm(通过单击)?我找到了几个示例,但 QDialog 是以编程方式创建的。我想在 QDialog 上拖放按钮、列表视图和其他组件。现在我只能通过修改代码来添加新组件。
谢谢
选择File/New ...;然后从Files and Classes,选择Qt,然后从Qt Designer Form Class右侧面板中选择。 Choose ...然后带您到另一个页面,您可以在其中选择Dialog.
File/New ...
Files and Classes
Qt
Qt Designer Form Class
Choose ...
Dialog
菜单项File|New...让您可以在选项卡中选择各种对话框类型templates\forms。(Qt 版本 4.7.0。)
File|New...
templates\forms