Qt send signal to main application window
Posted
by dumbquestion
on Stack Overflow
See other posts from Stack Overflow
or by dumbquestion
Published on 2010-03-22T19:54:35Z
Indexed on
2010/03/22
20:11 UTC
Read the original article
Hit count: 254
I need a QDialog to send a signal to redraw the main window.
But connect needs an object to connect to.
So I must create each dialog with new and explicitly put a connect() every time.
What I really need is a way of just sending MainWindow::Redraw() from inside any function and having a single connect() inside Mainwindow to receive them.
But you can't make a signal static and dialogs obviously don't inherit from MainWindow.
© Stack Overflow or respective owner