如何在Qt中为C程序开发UI [英] How to develop a UI in Qt for a C program

查看:366
本文介绍了如何在Qt中为C程序开发UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





想知道如何使用Qt为C程序开发UI。什么是所需的必需品。我已经安装了Qt创建者。



我是否需要Qt工具或Qt Designer或Qt SDK,是否需要开发UI所需的其他工具,或者我可以创建与Qt Creator本身。我是新手,提出你对此的想法以及如何完成上述任务。

Hi,

Would like to know how to develop a UI for a C program using Qt. What are all the essentials needed. I have installed Qt creator.

Do i need Qt tool or Qt Designer or Qt SDK, are there any other tool needed for developing the UI or, can i just create with Qt Creator itself. I am new to this, suggest your ideas on this and how the above task can be done.

推荐答案





首先 - > Qt是C ++



Qt支持不同的UI实现变体。基于QWidget和基于QtQuick。如果您创建一个基本的桌面应用程序,我会推荐基于QWidget的方式。



从一个小例子开始,了解Qt的基本概念可能是最好的。您可以在Qt文档中找到一个:



入门:

http://doc.qt.io/qt-5/gettingstarted.html



QtWidget示例:

http: //doc.qt.io/qtcreator/creator-writing-program.html [ ^ ]



THG
Hi,

first of all -> Qt is C++

Qt supports different variants of UI implementation. QWidget-based and QtQuick-based. If you create a basic desktop application i would recommend the QWidget based way.

Its probably the best to start with a small example to understand the basic concept of Qt. You can find one in the Qt docs:

Getting started:
http://doc.qt.io/qt-5/gettingstarted.html

QtWidget example:
http://doc.qt.io/qtcreator/creator-writing-program.html[^]

THG


这篇关于如何在Qt中为C程序开发UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆