Try
CJonTable *child = new CJonTable;
QWidget *pParent
= m_pWorkspace
->addWindow
(child,Qt
::WindowTitleHint);
connect(child, SIGNAL(TableDirty()), this, SLOT(OnDirty()));
//QWidget *pParent = child->parentWidget();
//pParent->setWindowFlags( Qt::WindowTitleHint );
pParent->installEventFilter( child );
return child;
CJonTable *child = new CJonTable;
QWidget *pParent = m_pWorkspace->addWindow(child,Qt::WindowTitleHint);
connect(child, SIGNAL(TableDirty()), this, SLOT(OnDirty()));
//QWidget *pParent = child->parentWidget();
//pParent->setWindowFlags( Qt::WindowTitleHint );
pParent->installEventFilter( child );
return child;
To copy to clipboard, switch view to plain text mode
Bookmarks