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

Qt-interest Archive, September 2003
Moving mouse cursor with keyboard


Message 1 in thread

Hi All,

Is there any way to use the arrows on the keyboard to control the mouse
cursor?

Thanks in advance,
Claudenê Correia


Message 2 in thread

hi,

> Is there any way to use the arrows on the keyboard to control the mouse
> cursor?

you can use

void QCursor::setPos(int x, int y) [static]

to set the position. to move it with the keyboard, override
keyPressEvent() in your widget and move the cursor accordingly.

hth,
Matthias

______________________________________________________________________
Matthias Fritschi
fritm@oridus.com


Message 3 in thread

Claudenê Correia wrote:

>Hi All,
>
>Is there any way to use the arrows on the keyboard to control the mouse
>cursor?
>
>Thanks in advance,
>Claudenê Correia
>
>--
>List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>  
>

Yes there is.
You have to press Ctrl-Shift-NumLock and then you can move around with 
the keypad/keyboard.
Regards
Cornelius


Message 4 in thread

hi cornelius,

what you have said doesnt work on Windows. does it work in any other OS?

bye
Kumaran

"Cornelius Kölbel" <cornelius.koelbel@gmx.de> wrote in message
3F6A2805.7040001@gmx.de">news:3F6A2805.7040001@gmx.de...
Claudenê Correia wrote:

>Hi All,
>
>Is there any way to use the arrows on the keyboard to control the mouse
>cursor?
>
>Thanks in advance,
>Claudenê Correia
>
>--
>List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>
>

Yes there is.
You have to press Ctrl-Shift-NumLock and then you can move around with
the keypad/keyboard.
Regards
Cornelius


Message 5 in thread

Hello,

well it is a feature of XWindow. i.e. it works on linux and other unices.

Cornelius

Kumaran wrote:

>hi cornelius,
>
>what you have said doesnt work on Windows. does it work in any other OS?
>
>bye
>Kumaran
>
>"Cornelius Kölbel" <cornelius.koelbel@gmx.de> wrote in message
>3F6A2805.7040001@gmx.de">news:3F6A2805.7040001@gmx.de...
>Claudenê Correia wrote:
>
>  
>
>>Hi All,
>>
>>Is there any way to use the arrows on the keyboard to control the mouse
>>cursor?
>>
>>Thanks in advance,
>>Claudenê Correia
>>
>>--
>>List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>>
>>
>>    
>>
>
>Yes there is.
>You have to press Ctrl-Shift-NumLock and then you can move around with
>the keypad/keyboard.
>Regards
>Cornelius
>
>--
>List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>  
>


Message 6 in thread

It certainly doesn't work on Solaris/CDE.

> -----Original Message-----
> From: owner-qt-interest@trolltech.com
> [mailto:owner-qt-interest@trolltech.com]On Behalf Of Cornelius Kölbel
> Sent: Friday, September 19, 2003 3:26 AM
> To: skumaran_19@hotmail.com
> Cc: qt-interest@trolltech.com
> Subject: Re: {Spam?} Re: {Spam?} Moving mouse cursor with keyboard
>
>
> Hello,
>
> well it is a feature of XWindow. i.e. it works on linux and other unices.
>
> Cornelius
>
> Kumaran wrote:
>
> >hi cornelius,
> >
> >what you have said doesnt work on Windows. does it work in any other OS?
> >
> >bye
> >Kumaran
> >
> >"Cornelius Kölbel" <cornelius.koelbel@gmx.de> wrote in message
> >3F6A2805.7040001@gmx.de">news:3F6A2805.7040001@gmx.de...
> >Claudenê Correia wrote:
> >
> >
> >
> >>Hi All,
> >>
> >>Is there any way to use the arrows on the keyboard to control the mouse
> >>cursor?
> >>
> >>Thanks in advance,
> >>Claudenê Correia
> >>
> >>--
> >>List archive and information: http://lists.trolltech.com/qt-interest/
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >Yes there is.
> >You have to press Ctrl-Shift-NumLock and then you can move around with
> >the keypad/keyboard.
> >Regards
> >Cornelius
> >
> >--
> >List archive and information: http://lists.trolltech.com/qt-interest/
> >
> >
> >
> >
>
> --
> List archive and information: http://lists.trolltech.com/qt-interest/


Message 7 in thread

Hi,

> well it is a feature of XWindow. i.e. it works on linux and other unices.

It doesn't work on my Linux machine either. I wasn't aware of the 
existence of such functionality in XFree86.

--
 [ signature omitted ] 

Message 8 in thread

Well,
I can´ t remember having tweaked the XFree86-Config...
I am running XFree 4.3.0

Regards
Cornelius

Dimitri wrote:

> Hi,
>
>> well it is a feature of XWindow. i.e. it works on linux and other 
>> unices.
>
>
> It doesn't work on my Linux machine either. I wasn't aware of the 
> existence of such functionality in XFree86.
>
> -- 
> Dimitri
>
> -- 
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>


Message 9 in thread

It may well be more of a desktop environment setting.  Which one do you use?
(and which version)

> -----Original Message-----
> From: owner-qt-interest@trolltech.com
> [mailto:owner-qt-interest@trolltech.com]On Behalf Of Cornelius Kölbel
> Sent: Friday, September 19, 2003 11:35 AM
> To: dimitri@trolltech.com; qt-interest
> Subject: Re: {Spam?} Re: {Spam?} Moving mouse cursor with keyboard
>
>
> Well,
> I can´ t remember having tweaked the XFree86-Config...
> I am running XFree 4.3.0
>
> Regards
> Cornelius
>
> Dimitri wrote:
>
> > Hi,
> >
> >> well it is a feature of XWindow. i.e. it works on linux and other
> >> unices.
> >
> >
> > It doesn't work on my Linux machine either. I wasn't aware of the
> > existence of such functionality in XFree86.
> >
> > --
> > Dimitri
> >
> > --
> > List archive and information: http://lists.trolltech.com/qt-interest/
> >
> >
>
> --
> List archive and information: http://lists.trolltech.com/qt-interest/


Message 10 in thread

kde 3.1-12

Ian Wilkinson wrote:

>It may well be more of a desktop environment setting.  Which one do you use?
>(and which version)
>
>  
>
>>-----Original Message-----
>>From: owner-qt-interest@trolltech.com
>>[mailto:owner-qt-interest@trolltech.com]On Behalf Of Cornelius Kölbel
>>Sent: Friday, September 19, 2003 11:35 AM
>>To: dimitri@trolltech.com; qt-interest
>>Subject: Re: {Spam?} Re: {Spam?} Moving mouse cursor with keyboard
>>
>>
>>Well,
>>I can´ t remember having tweaked the XFree86-Config...
>>I am running XFree 4.3.0
>>
>>Regards
>>Cornelius
>>
>>Dimitri wrote:
>>
>>    
>>
>>>Hi,
>>>
>>>      
>>>
>>>>well it is a feature of XWindow. i.e. it works on linux and other
>>>>unices.
>>>>        
>>>>
>>>It doesn't work on my Linux machine either. I wasn't aware of the
>>>existence of such functionality in XFree86.
>>>
>>>--
>>>Dimitri
>>>
>>>--
>>>List archive and information: http://lists.trolltech.com/qt-interest/
>>>
>>>
>>>      
>>>
>>--
>>List archive and information: http://lists.trolltech.com/qt-interest/
>>    
>>
>
>--
>List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>  
>


Message 11 in thread

Works on my SuSE linux, kde 3.1.3 out of the box. Shortcut is Alt+F12.

//lauri

On Friday 19 September 2003 19:25, Dimitri wrote:
> Hi,
>
> > well it is a feature of XWindow. i.e. it works on linux and other unices.
>
> It doesn't work on my Linux machine either. I wasn't aware of the
> existence of such functionality in XFree86.
>
> --
> Dimitri
>
> --
> List archive and information: http://lists.trolltech.com/qt-interest/


Message 12 in thread

Cornelius's shortcut was "Ctrl-Shift-NumLock".

I suspect that there is no, consistent method here.

> -----Original Message-----
> From: owner-qt-interest@trolltech.com
> [mailto:owner-qt-interest@trolltech.com]On Behalf Of Lauri Ojantakanen
> Sent: Friday, September 19, 2003 11:49 AM
> To: qt-interest@trolltech.com
> Subject: Re: {Spam?} Re: {Spam?} Moving mouse cursor with keyboard
> 
> 
> Works on my SuSE linux, kde 3.1.3 out of the box. Shortcut is Alt+F12.
> 
> //lauri
> 
> On Friday 19 September 2003 19:25, Dimitri wrote:
> > Hi,
> >
> > > well it is a feature of XWindow. i.e. it works on linux and 
> other unices.
> >
> > It doesn't work on my Linux machine either. I wasn't aware of the
> > existence of such functionality in XFree86.
> >
> > --
> > Dimitri
> >
> > --
> > List archive and information: http://lists.trolltech.com/qt-interest/
> 
> --
> List archive and information: http://lists.trolltech.com/qt-interest/


Message 13 in thread

On Fri, Sep 19, 2003 at 09:48:44PM +0300, Lauri Ojantakanen wrote:
> Works on my SuSE linux, kde 3.1.3 out of the box. Shortcut is Alt+F12.

Works for me on Debian (woody) and Gentoo, using Ctrl+Shift+NumLock on
each.

-- 
 [ signature omitted ]