Qt send signal to main application window
- by dumbquestion
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.