Results 1 to 2 of 2

Thread: Creating a .pro file for the project

  1. #1
    Join Date
    Jan 2016
    Posts
    76
    Thanks
    28
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Creating a .pro file for the project

    Hi all,

    I installed Qt creator IDE v. 5.5.1 (Qt Creator (Community)) and also installed Qt Creator 3.6.0 on my Windows 64-bit machine. But I use only the Qt Creator 3.6.0 one for creating apps because it’s said to have more features compared to the Qt Creator IDE v. 5.5.1 (Qt Creator (Community)) one.

    I've created a Form (using File > New File or Project > Qt > Qt Designer Form > Choose > Widgets ) by Qt Creator 3.6.0.
    Then I created the .h, .cpp and main.cpp files using again Qt Creator 3.6.0. Now all the four files (.ui, .h, .cpp and main.cpp) have their codes and are in a folder.
    Now is the time to make a .pro file for them to be able to run the project. How to do it please?

  2. #2
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    258
    Thanks
    3
    Thanked 65 Times in 59 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Creating a .pro file for the project

    Simple, just write it More details:

    (1) Create an empty Qt project (in Qt5.5). After finishing creating the project, you get a project that will contain a single empty file (the .pro file).
    (2) Write a "header" of the .pro file. I mean directives like TEMPLATE, QT, TARGET, INCLUDEPATH, DEPENDPATH, QMAKE_CXXFLAGS and so on.
    (3) Add your files (.ui, .h, etc.) to hte project. This will finish the .pro file for you.
    (4) Save.
    (5) Compile, run, debug.

Similar Threads

  1. Replies: 4
    Last Post: 10th October 2014, 16:10
  2. Error creating new project in c + +
    By uzumaki0160 in forum Newbie
    Replies: 8
    Last Post: 28th August 2012, 13:00
  3. Replies: 0
    Last Post: 28th May 2010, 07:50
  4. help creating a project file
    By Slewman in forum Qt Programming
    Replies: 10
    Last Post: 23rd December 2009, 12:42
  5. Replies: 1
    Last Post: 4th December 2009, 00:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.