Hello Jacek,
You are right the cast was incorrect (Because it was one of my tests...).
So here is the method which *should* work:
void CWndMainImpl
::EditorTabChanged (QWidget* pWidget
) { pTextViewer->setParent(pWidget);
}
void CWndMainImpl::EditorTabChanged (QWidget* pWidget) {
pTextViewer->setParent(pWidget);
}
To copy to clipboard, switch view to plain text mode
But it does the same 
The interesting point is that when i create my text box, i do as follows:
pTextViewer->setParent(tabFile_New1);
connect( tabCtnrEditor,
SIGNAL(currentChanged
(QWidget*)),
this,
SLOT(EditorTabChanged
(QWidget*)) );
pTextViewer = new QTextEdit;
pTextViewer->setParent(tabFile_New1);
connect( tabCtnrEditor, SIGNAL(currentChanged(QWidget*)), this, SLOT(EditorTabChanged(QWidget*)) );
To copy to clipboard, switch view to plain text mode
And the parent i give is ok.
But then once the parent is set up, if i try to change the edit box's parent, it doesn't works as i'm expecting.
[EDIT:] The version i'm using is QT 4.2, i don't know the minor version (Standard Edgy package).
Anyway, thanks a lot for your help.
Pierre.
Bookmarks