PDA

View Full Version : how to make several lines as "commented" automatically???



mahsa
31st July 2012, 09:51
Hi

I know it is a bit nonsense but I want several lines of my codes to be "commented" or "omited" after a special button is pressed what should I do?
I mean, is there any way to do such a thing?
the reason for this action is to set a new screen by easily using the old one without unwanted items.

thanx 4 ur upcoming answers:)

Qtonimo
31st July 2012, 09:57
You can comment your lines of code like this:
-Open the file with QFile
-read and manipulate it with QTextStream

But the appearance of your app won't change, because the code is already compiled...