Qshortcut limit
-
how do I set a qshortcut works for a particular window only not an entire application?
is it possible? -
Hi,
you can set the context of the shortcut with QShortcut::setContext()
-
I used all kind of setcontext properties, but no one will restrict qshortcut working limit within a single dialog only.. it there anyother way?
-
Can you post some slice of code?
The default value of Context allows QShortcut to be triggered only if the widget is a subwidget of the active toplevel window
-
To change windows flag in constructor..
avoid using @this->windowflags( );@ -
yeah, its working, thanks..