Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, January 2007
Global Shortcut


Message 1 in thread

Hello,

I have an application which hides to system tray. Is it possible to 
create some keyboard shortcut which will show main window of my 
application or will call some signal?

--
 [ signature omitted ] 

Message 2 in thread

Monday 22 January 2007 08:13 Aleksey Luzin wrote:
> Hello,
>
> I have an application which hides to system tray. Is it possible to
> create some keyboard shortcut which will show main window of my
> application or will call some signal?

I don't know if there's a way to do it on your target platforms, but Qt does 
not provide such a way. It can only handle keyboard shortcuts when the 
application has focus, and that is not the case here.

Bo.

-- 
 [ signature omitted ] 

Message 3 in thread

Bo Thorsen wrote:
> Monday 22 January 2007 08:13 Aleksey Luzin wrote:
>   
>> Hello,
>>
>> I have an application which hides to system tray. Is it possible to
>> create some keyboard shortcut which will show main window of my
>> application or will call some signal?
>>     
>
> I don't know if there's a way to do it on your target platforms, but Qt does 
> not provide such a way. It can only handle keyboard shortcuts when the 
> application has focus, and that is not the case here.
>
> Bo.
>
>   
Is it possible to do this using XGrabButton?
I cannot find any example of using this function :(


--
 [ signature omitted ] 

Message 4 in thread

> Is it possible to do this using XGrabButton?
> I cannot find any example of using this function :(

http://tinyurl.com/2mqvxv

Very recommendable, even in general.

Micha

--
 [ signature omitted ]