[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?



  • Sorry, my fault was :)
    I put into the child wrong class type...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.