Answer the question
In order to leave comments, you need to log in
How to link two qwidjet?
Is it possible to somehow manipulate frames using QApplication? I'm trying to somehow draw analogies with Layout from Android, the signals are very finicky, and in general it turns out to connect only this kind of
mainWindow.connect(self.btn, SIGNAL(clicked()), action())
Answer the question
In order to leave comments, you need to log in
What kind of interaction is needed?
All widgets are perfectly connected by signals:
connect(childWidget1->button, QPushButton::clicked, this, MainWindow::onButton1Click);
connect(childWidget2->button, QPushButton::clicked, this, MainWindow::onButton2Click);
onButton1Click()
{
childWidget2->doSmth();
}
You might be better off using qstackwidget. In it, you can add pages with the widgets you need and conveniently switch them.
If you do it the way you want, then there should be objects of these windows + a signal in the sender, which will be associated with a public slot in the receiver.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question