I create new cad widget in my mainwindow:
glWidget = new MeshViewerWidget(this);
and then my text view widget:
tbl = new tableView( this );
in my mainwindow i can get my mesh with:
glWidget->mesh();
How do i get it in my tableview.cc? ty
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use the
findChildrenfunction ofQObjectand get a list of all children of a widget that can be casted to the given type. EgAnother approach would be the one Simon suggests, subclassing and adding public access function to the members you want to be reachable from top level widgets.