How to run C code in Qt creator to build an interface?

Status
Not open for further replies.

klun

Junior Member level 2
Joined
May 1, 2015
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
386
I have an existing C code, and now I want to build an interface in Qt creator so that my output would'nt just in the plain gcc console look. Can anyone teach me how to run the code in Qt creator in order to obtain a simple interface?
 

Hi Klun

is your C-Project Makefile, cmake or auto tools based?

cmake:
https://doc.qt.io/qtcreator/creator-project-cmake.html
autotools:
https://doc.qt.io/qtcreator/creator-projects-autotools.html
generic:
https://doc.qt.io/qtcreator/creator-project-generic.html


An easy way is the following:
File->New File or Project->Import Project->Import Existing Project

Choose project name and select the directories to import.

Thats it.

BTW. QtCreator is a general purpose IDE. It has also a Bare metal plugin for microcontroller development.
Help->About Plugins->DeviceSupport. The QtCreator has to be restarted to activate the plugin.

Cheers Juergen
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…