How to run Qt application from windows commandline?
-
I developed Qt application using "Qt Creator 2.3.0 Based on Qt 4.7.4 (32 bit)".
I got its ".exe" file which run perfectly after double click on it.
But I want users of this application to run it from their windows command line.
How can i do that? what command they must type to run the application? -
I QT SDK and this is how I get to a command line:
go to:
All Programs
->QT SDK
->Desktop
-> Qt 4.8.1 for Desktop (MinGWNot sure if this is what you are looking for.
-
I use QT SDK ....
-
have you tried:
qmake -project
qmake file.pro -
I am new to all this so I am guessing..
if you go to:
All Programs ->QT SDK ->Desktop -> Qt 4.8.1 for Desktop (MinGW)This will give you a command line option. Once you have that open, CD to your project directory and do the following:
qmake -project
qmake file.proI am not sue if this is what you were looking for, sorry if I led you on a wild goose chase.
-
ah..sorry I misunderstood.
-
if you have all the required libraries in the directory, including the Qt dll's for your library, then you can just use the explicit path to run your application (unless you have a Qt license and built it statically, then you dont need the dll's)...
c:\path\to\your\application\file.exe