Unsolved create project from existing sources in qt creator
-
Hi,
I am new to Qt and Qt creator. I have an existing MSVC project that I have ported into a Linux enivironment. There I would like to build and debug that project using Qt creator which I had not known before and which has been recommended to me. If this forum is the right one: could you please tell me what is best practice to do that.
Kind regards
Werner -
Hi and welcome to devnet,
What are you currently using to build your project ?
Are you using any project manager like cmake or qmake ? -
Hi SGaist,
it was as simple as creating a new project and adding all files directory-wise;
however there is still something I fail to manage:I am trying to set a macro within the build configuration that can be identified by #ifdef;
however I yet failed to find the right way, although I have googled for some time
now.Could you please tell me how this is to be managed?
Kind regards
Werner -
Hi
Are you using qmake ?
You can make a define with
DEFINES += "WINVER=0x0500"
https://stackoverflow.com/questions/3348711/add-a-define-to-qmake-with-a-value