Qt-interest Archive, December 2007
Problem in app MDI with Plugin
Message 1 in thread
Hello friends,
I have an application in MDI and creating shared libraries. The function showPlugin is a slot that should open a window into the MDI. It is perfectly functional if I call a window through qobject_cast (act-> parent)->show(), but is open in separate window of the application.
template T *MainWindow::createT(T *win)
{
win = new T();
QMdiSubWindow *mdiSubWin = new QMdiSubWindow();
mdiSubWin->setWidget(win);
mdiArea->addSubWindow(mdiSubWin);
mdiSubWin->show();
}
void MainWindow::showPlugin()
{
QAction *act = qobject_cast(sender());
createT(qobject_cast(act->parent()));
}
thanks,
Marcelo E. Geyer
_________________________________________________________________
Cansado de espaço para só 50 fotos? Conheça o Spaces, o site de relacionamentos com até 6,000 fotos!
http://www.amigosdomessenger.com.br
--
[ signature omitted ]