Qt: Difference between revisions
From Andreida
(Created page with "== Links == * [http://stackoverflow.com/questions/8853845/how-to-connect-firebird-db-with-qt Qt+Firebird] == qt pro file, change directory for temporary output files == in th...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 22: | Line 22: | ||
put the following into your .pro file |
put the following into your .pro file |
||
QMAKE_CXXFLAGS += -std=gnu++0x |
QMAKE_CXXFLAGS += -std=gnu++0x |
||
== use qmake of different qt versions == |
|||
qmake -qt=4 |
|||
qmake -qt=5 |
|||
== qt, gather needed DLLs for an executable == |
|||
windeployqt.exe <path-to-exe> |
Latest revision as of 13:22, 16 February 2016
Links
qt pro file, change directory for temporary output files
in the .pro file:
MOC_DIR = tmp/moc OBJECTS_DIR = tmp/obj RCC_DIR = tmp/rcc UI_DIR = tmp/ui
qt switch between versions, for example qt3 and qt4, or different qt4 versions
what you change is the used version of qmake. You do that with
update-alternatives --config qmake
qt app icon on your linux desktop
- copy a .png file with the same name as the application to ~/.icons
- Example: application name is "myWorld"
- copy myWorld.png to ~/.icons
use C++11
put the following into your .pro file
QMAKE_CXXFLAGS += -std=gnu++0x
use qmake of different qt versions
qmake -qt=4 qmake -qt=5
qt, gather needed DLLs for an executable
windeployqt.exe <path-to-exe>