Qt

From Andreida
Revision as of 11:56, 16 February 2016 by Andreas (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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