Key Press and Qt::ToolTip Flag
I have a window that I want to hide from taskbar. I tried couple of things, but setting the Qt::ToolTip flag is the only one that works well for me, except one thing, it no longer receives keyPressEvent. How do I get it to receve the event?
Thanks in advance.
on which OS are you working? AFAIK, this is a platformdependant thing.
Thank you for your reply.
Linux primarily, but I would like it to be cross-platform, if possible.
Was 'Windows' the correct answer? :)
In case someone else encounters this problem, you can solve it by
using this instead of Qt::ToolTip:
@setWindowFlags ( Qt::Tool | Qt::FramelessWindowHint);@
Alternatively, you can use the approach from this "FAQ":http://developer.qt.nokia.com/faq/answer/how_can_i_create_a_window_that_has_no_taskbar_entry where we create a dummy widget that acts as a parent for a second widget and then pass in the Window flag to the second widget.