Qt

From Andreida
Revision as of 15:22, 16 February 2016 by Andreas (talk | contribs) (→‎use qmake of different qt versions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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>