Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT: Change the name of the built executable

Tags:

qt

Running QT Creator 2.4 on Mac OSX.

How do I change the name of the final .app file generated? It seems it's bound to the name of the .Pro file.

like image 315
JasonGenX Avatar asked Jan 27 '12 18:01

JasonGenX


People also ask

How to change exe name in Qt?

You can open the . pro file and change the Name in the TARGET variable. The executable will be built as that name.

How do I make my QT file executable?

From: How to create executable file for a Qt Application? Basically you have to look for MinGW subfolder deep into Qt tree, where Qt utilities reside, and copy needed dll's. These are the steps I follow, based upon Qt 4.7. 4, for packaging the application with correct shared libraries.


2 Answers

In your .pro file, use:

TARGET = name_of_application
like image 58
Dave Mateer Avatar answered Oct 01 '22 15:10

Dave Mateer


You can open the .pro file and change the Name in the TARGET variable. The executable will be built as that name.

like image 36
Karlson Avatar answered Oct 01 '22 15:10

Karlson