Qt4: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
No edit summary
Manpaz (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
=== How to create a new project in QT4 ===
= QT4 =
* Make a directory for the project and put the source code in it. The folder and the project have the same name.
== 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.
<pre><nowiki>
mkdir prj_name
mkdir prj_name
* Put the source code inside that directory.
</nowiki></pre>
* Go into that directory and make the project file

# Put the source code inside that directory.
# Go into that directory and make the project file
<pre><nowiki>
cd prj_name/
cd prj_name/
qmake -project
qmake -project
* This will produce a .pro (project) file based on the name of the current directory, which would be prj_name.pro
</nowiki></pre>
* Create a (platform-specific) Makefile based on the project file.

# This will produce a .pro (project) file based on the name of the current directory, which would be prj_name.pro
# Create a (platform-specific) Makefile based on the project file.
<pre><nowiki>
qmake prj_name.pro
qmake prj_name.pro
* Run make to compile the project:
</nowiki></pre>

# Run make to compile the project:
<pre><nowiki>
make
make
</nowiki></pre>

Latest revision as of 04:51, 6 June 2015

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.
mkdir prj_name
  • Put the source code inside that directory.
  • Go into that directory and make the project file
cd prj_name/
qmake -project
  • This will produce a .pro (project) file based on the name of the current directory, which would be prj_name.pro
  • Create a (platform-specific) Makefile based on the project file.
qmake prj_name.pro
  • Run make to compile the project:
make