PDA

View Full Version : semaphores and passing variables between windows



Tomasz
25th November 2010, 15:20
Hello!

I've got application with 3 widows. One is always visible (main window). Only one of rest can be visible in a moment. In each window (code) I've got one or two timers. When one window is active I want to stop timers on the other window (i think something like semaphores will be useful), and also I want to pass some values between that windows. How can I do that things in a proper way?

thanks in advance
best regards
Tomasz

high_flyer
25th November 2010, 17:02
When one window is active I want to stop timers on the other window
You can override the hide() method, and stop the timers there. (for example)


and also I want to pass some values between that windows. How can I do that things in a proper way?
Read about Qt's signals and slot.