Difference between revisions of "Qt4"

From Bashlinux
Jump to: navigation, search
(talk)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
= QT4 =
 
 
== How to create a new project in QT4 ==
 
== How to create a new project in QT4 ==
 
# Make a directory for the project and put the source code in it. The folder and the project have the same name.
 
# Make a directory for the project and put the source code in it. The folder and the project have the same name.

Revision as of 05:27, 30 May 2013

How to create a new project in QT4

  1. Make a directory for the project and put the source code in it. The folder and the project have the same name.
 mkdir prj_name
 
  1. Put the source code inside that directory.
  2. Go into that directory and make the project file
 cd prj_name/
 qmake -project
 
  1. This will produce a .pro (project) file based on the name of the current directory, which would be prj_name.pro
  2. Create a (platform-specific) Makefile based on the project file.
 qmake prj_name.pro
 
  1. Run make to compile the project:
 make