Hi,
I have written this code in my class derived from QWidget,but it shows no text ..!!

Qt Code:
  1. class ProgressWidget:public QWidget
  2. {
  3. ..
  4. ..
  5. };
To copy to clipboard, switch view to plain text mode 


Qt Code:
  1. void ProgressWidget::instructionStringOne()
  2. {
  3. txt1->setPlainText(str1);
  4. txt1->setFont(fontStr1);
  5. txt1->setTextWidth(TEXT_WIDTH);
  6. txt1->setPos(INSTRUCTION_TEXT_1_X,INSTRUCTION_TEXT_1_Y);
  7. txt1->show();
  8.  
  9. }
To copy to clipboard, switch view to plain text mode 

should it work ot this is a mistake....i have also tried different values in setPos but it shows no text..