QT Newbie ( how to open widget from mainwindow )
I am a Newbie in Qt and i want to know that “how to open widget from mainwindow” Can any one provide the code
i have write some code but widget are not disp—layed.
Thanks in Advance
//MainWindow.cpp
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
void MainWindow::open(){
AnotherMainWindow * w2 = new AnotherMainWindow(this);
w2->show();
//w2.showFullScreen();
//this->hide();
//MainWindow.h( i have added in .h)
public slots :
void open() ;
//main.cpp
w.showMaximized();
1 reply
You must log in to post a reply. Not a member yet? Register here!


