tags:

views:

211

answers:

2

How to compile only one file from project in QT creator. Is there a hotkey? For example in VS you can press Ctrl F7 and compile your current cpp file.

A: 

Normally if you hit CTRL + B, Qt Creator will call make, which will in turn compile any files that have been modified since you compiled the last time. AFAIK there is no designated key for re-building the current file.

However, all Keystrokes can be configured in the application preferences General -> Keyboard. There are also a number of interesting other commands you might find useful.

BastiBense
+1  A: 

Compiling only one file of a project is not yet supported by Qt Creator. You can track the feature request or vote for it at http://bugreports.qt.nokia.com/browse/QTCREATORBUG-106.

danimo