Click here to Skip to main content
15,887,872 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
Posted

1 solution

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
 
Share this answer
 
Comments
venkat28vk 7-Sep-15 1:49am    
Can i use this to develop a UI for C program, because i have developed a set of codes in C and i need to develop a UI for various operations.
TheHumbleGuy 7-Sep-15 2:00am    
Of course. You can use your C code from your Qt C++ application.
venkat28vk 7-Sep-15 2:15am    
I have just now tried to create a simple UI using Qt Creator, but i am facing some error in this. And one more doubt is Qt creator is enough or do i need any other packages. I am also getting an error stating that "error No such file or directory".
TheHumbleGuy 7-Sep-15 2:18am    
What kind of errors?
venkat28vk 7-Sep-15 2:19am    
No such file or directory i am getting

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900