Where does Qt read the tasks queue and perform them?
It would save me two threads and make the code a lot easier to maintain, read, etc.
Please I need some help
Thanks in advance!
Where does Qt read the tasks queue and perform them?
It would save me two threads and make the code a lot easier to maintain, read, etc.
Please I need some help
Thanks in advance!
What are you trying to accomplish?
Qt doesn't schedule threads. The OS does.
Its not about how threads are managed.
I want is to process other functions inside the main loop, like reading global hotkeys and managing a simple task scheduler I've made. It would be so much easier this way...
Thanks for the answer!
Hi
I dont know if I understood your question, sorry if I didn't.
Keybord shortcuts can be managed using signal and slots. Maybe a task scheduler could be created using a Timer and signal/slots...
This link might help you to find how to use keyboard shotrcuts - it contains several Qt videos:
http://www.google.com.br/search?q=QT...ed=0CD4QqwQwAw
I do not manage my own program's hotkey, they are global, registered using RegisterHotkey()... so I need to check their message callback.
That depends on what window handle you provided to the OS. You can subclass the widget you used and overwrite the message handler, and then look for your message.
Bookmarks