[Qt-interest] Disable keyboard navigation?

Malyushytsky, Alex alex at wai.com
Fri Jul 24 00:16:03 CEST 2009


I have not tried, but installing event filter might do the job, if you have reason to avoid subclassing.
Example can be found at:

http://doc.qtsoftware.com/4.5/qobject.html#installEventFilter

Regards,
  Alex

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Girish Ramakrishnan
Sent: Thursday, July 23, 2009 2:21 PM
To: Anatoly Burakov; qt-interest at trolltech.com
Subject: Re: [Qt-interest] Disable keyboard navigation?

Anatoly Burakov wrote:
> Hi all,
>
> I am looking for a way to disable keyboard navigation in QTableView (e.
> g. when i press 'F' key the view is automatically looking for the first
> entry with 'F' in it - i DO NOT want this behaviour). Is there any way i
> can achieve that without subclassing QTableView and reimplementing
> keyPressEvent() ?

You will have to subclass. Also, instead of keyPressEvent(), you can
provide an empty keyboardSearch() reimplementation.

Girish
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."

"Please consider our environment before printing this email."




More information about the Qt-interest-old mailing list