[solved] parentwidget problem
-
I have an QDockWidget and I have an QTableView in my dockwidget.
In title of QDockWidget there is a QLineEdit. I'd like to reach this lineedit from my tableview:@
QObject::connect(
((CameraDockWidget*)parentWidget())->getLineEdit(),
SIGNAL(textChanged(QString)),
filter,
SLOT(setFilterFixedString(QString))
);
@But I have no parent :(
How can I reach the parent (or rather my lineedit)? -
Why can't you introduce them to each other in the class where you add both?