hi all,
I have an application in which when I press a button I should get a find dialog box. Thing is if I press the button again, I shouldnot get one more dialog box. The previous one should appear.
My present code is like this:
Qt Code:
  1. CPT::CPT(QWidget *parent):QWidget(parent)
  2. {
  3. //some other lines of code
  4. QPushButton *but=new QPushButton(this);
  5. QObject::connect(but,SIGNAL(clicked()),this,SLOT(findbox()));
  6. //remaining program
  7. }
  8. void CPT::findbox()
  9. {
  10. QWidget *findstr=new QWidget;
  11. //other widgets added to it
  12. findstr->show();
  13. }
To copy to clipboard, switch view to plain text mode 
So kindly help me in this problem.