In Qt everything is based on a .pro file. This is the project file as well as the basis for the make file. You can type one yourself. Or have a look at qmake to generate one for you based on your files.
Another, more practical, option is to download and install Qt Creator (Use "Qt4 SDK"). Start a new project, and add your files. All the Qt-specific stuff will be setup automatically and you needn't care about the C/C++ compiler settings either. That will all be taken care of automatically. It even comes with a gcc compiler
(but to reply to the title: if you want to *force* C++, you could compile with "g++" instead of with "gcc". Just replace the one with the other, and it will be strictly C++ from that point forward. But in Qt projects it is best to let Qt Creator or qmake take care of that for you instead.)
Bookmarks