//this class is mail window A
class CMSS_Proto : public QMainWindow
{
Q_OBJECT
public :
CMSS_Proto( QWidget * parent = 0, const char * name = 0, WFlags f = WType_TopLevel );
};
//class of form B is
class Form2 : public QDialog
{
Q_OBJECT
public:
Form2( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~Form2();
QPushButton* AddUsrPushBut;
public slots:
virtual void tt2(); //thsi function contains pushbutton //QMessageBox::information(this,"some text","some text",0)
protected:
protected slots:
virtual void languageChange();
};
void tt2()
{
Form2 *test = new Form2(this,0,true,0);
QMessageBox::information(this,"some text","some text",0);
}
i did as too.
when program runs then main window A comes & through pushbutton of A form B comes
when i click pushbutton of B then messagebox comes bihind B and front of A
please help me