[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: QTableView Enter key
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2009-07-28 4:04:06
Message-ID: 200907272204.13751.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 27 July 2009, Thiago Massari Guedes wrote:
> Hi dear developers,
> Do you know how can I trap the enter key pressed in QTableWidget ?
> I'd like to when pressed enter key in a qtablewidget change to next row and
> stop enter keypress event.

if you have subclassed QTableWidget, you can just reimplement the 
keyPress/keyRelease events.

if you are using QTableWidget directly, then you can set an event filter on 
the widget and filter out the event elsewhere in your code. do a search for 
installEventFilter in Qt Assistant for details :)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software

["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic