Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 7

Qt-interest Archive, March 2007
[no subject]


Message 1 in thread

Friends,I have an application in MDI and the new version of the QT (4.3.0)
will start to use new class, as QMdiArea and QMdiSubWindow.To place a window inside of the workspace a special window is created that
controls the embebed content. However in some tests the slot “close( )”
of the button eliminates the content all, but not destroy the window
that controls (QMdiSubWindow).In the embebed Window I fixed the dimensions, however this does not function in activity with QMdiSubWindow. Its follow part of the code:AlterPass *MainWindow::createAlterPass( ){    AlterPass *win = new AlterPass;        QMdiSubWindow *currentWindow = new QMdiSubWindow;    currentWindow->setWidget(win);    currentWindow->setAttribute(Qt::WA_DeleteOnClose);    mdiArea->addSubWindow(currentWindow);    currentWindow->show();}Thanks,Marcelo Estanislau.
_________________________________________________________________
Ligue para os seus amigos grátis. Faça chamadas de PC-para-PC pelo messenger-- GRÁTIS
http://get.live.com/messenger/overview