[Qt-interest] Key Press event for Table Widget

Luis Lezcano Airaldi luislezcair at gmail.com
Sun Jun 13 23:20:32 CEST 2010


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.



More information about the Qt-interest-old mailing list