Thanks,i was also thinking the same...but wasnt sure about it..
any ways when i used the QLabel ,i faced a problem that my text is not fully shown on the screen until and unless i introduce some spacing in the text here is the code..
#define SECOND_TRAINING_COMMAND "Do as you would want to do normally.Be accurate an' 'd avoid mistakes."
#define SECOND_TRAINING_COMMAND "Do as you would want to do normally.Be accurate an' 'd avoid mistakes."
QLabel *txt1;
To copy to clipboard, switch view to plain text mode
the spacing shown in the above string is necessary or it does not shows the whole string..
str2 = SECOND_TRAINING_COMMAND;
txt2
= new QLabel(this,Qt
::SubWindow);
txt2->setText(str2);
txt2->setFont(fontStr2);
txt2->setGeometry(INSTRUCTION_TEXT_2_X,INSTRUCTION_TEXT_2_Y,TEXT_WIDTH,TEXT_WIDTH);
txt2->setWordWrap(TRUE);
txt2->show();
str2 = SECOND_TRAINING_COMMAND;
txt2 = new QLabel(this,Qt::SubWindow);
txt2->setText(str2);
txt2->setFont(fontStr2);
txt2->setGeometry(INSTRUCTION_TEXT_2_X,INSTRUCTION_TEXT_2_Y,TEXT_WIDTH,TEXT_WIDTH);
txt2->setWordWrap(TRUE);
txt2->show();
To copy to clipboard, switch view to plain text mode
Bookmarks