November 19, 2010

Granty Granty
Lab Rat
5 posts

QTreeView “Done” Softkey

 

Hi Qts,

I’m not happy with the default softkey of QTreeview.

I would like to assign a custom softkey.

Any hints are welcome.

Cheers !

 Signature 

Cheers !
Granty

1 reply

November 19, 2010

blex blex
Lab Rat
171 posts

Keys are hard-coded in QTreeview::keyPressEvent() and QAbstractItemView::keyPressEvent().

So, you should use event filter or re-implement keyPressEvent() in your subclass.

 Signature 

————————————

Oleksiy Balabay

 
  ‹‹ Maps and Navigation API - Nokia plugin      Qt on the Caanoo ››

You must log in to post a reply. Not a member yet? Register here!