[Qt-interest] Key Press event for Table Widget

ramesh.bs at robosoftin.com ramesh.bs at robosoftin.com
Mon Jun 14 06:40:12 CEST 2010


HI,
Try installing the eventfilter for table widget.
and handle the key press event
> El 13/06/10 16:36, yogesh upreti escribió:
>> Hallo All,
>> I want to know how to handle the Keyboard Key Press event for a
>> QTableWidgt?
>> I have a Table and I want to delete selected rows using Delete key.
>>
>> Can someone guide me where to find it?
>>
>> Thanks
>> Yogesh Upreti
>
> Hi, you have to subclass QTableWidget and reimplement the
> keyPressEvent() function.
> Take a look at the QWidget documentation.
>
> Regards.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.



More information about the Qt-interest-old mailing list