Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. create project from existing sources in qt creator
Forum Update on Monday, May 27th 2025

create project from existing sources in qt creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 283 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Wepos
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What are you currently using to build your project ?
      Are you using any project manager like cmake or qmake ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • W Offline
        W Offline
        Wepos
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          3

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved