Hi,
the MdiChild is declared as:
#include <QMainWindow>
#include <impgenmaint.h>
namespace Ui {
class documentWindow;
}
{
Q_OBJECT
public:
explicit documentWindow
(QWidget *parent
= 0);
~documentWindow();
private:
Ui::documentWindow *ui;
};
#include <QMainWindow>
#include <impgenmaint.h>
namespace Ui {
class documentWindow;
}
class documentWindow : public QMainWindow
{
Q_OBJECT
public:
explicit documentWindow(QWidget *parent = 0);
~documentWindow();
private:
Ui::documentWindow *ui;
};
To copy to clipboard, switch view to plain text mode
The implementation is the same I previously posted.
I copied the QT mdi example, thus the code the created the mdi child is:
documentWindow *MainWindow::createMdiChild()
{
documentWindow *child = new documentWindow;
mdiArea->addSubWindow(child);
return child;
}
documentWindow *MainWindow::createMdiChild()
{
documentWindow *child = new documentWindow;
mdiArea->addSubWindow(child);
return child;
}
To copy to clipboard, switch view to plain text mode
I call createMdiChild as:
documentWindow *child = createMdiChild();
child->show();
documentWindow *child = createMdiChild();
child->show();
To copy to clipboard, switch view to plain text mode
Thanks.
Carlos.
Bookmarks