Reputation: 413
Is there anyway to comment certain sections of my .pro
file (Qt project)?
In my case I want to comment specific parts that do not apply to the platform I'm currently targeting.
Found this now: http://doc.qt.io/qt-4.8/qmake-project-files.html.
Upvotes: 11
Views: 10284
Reputation: 137
I think Silva is looking for something like this in .pro file:
if(false) {
...
your block
...
}
This is the programmatic way to do commenting, and you have control of it. Similar approaches may available for other test functions.
Upvotes: 2
Reputation: 189
If using QtCreator, highlight the section you wish to comment out, then right click for context menu and select 'Toggle Comment Selection'. This is good for large blocks code to comment out.
Upvotes: 0
Reputation: 2129
You can comment lines by using a #
symbol.
In the .pro
file, # before any line or statement indicates a comment.
Upvotes: 16