PDA

View Full Version : TreeView keyboard navigation



Onanymous
13th May 2010, 14:53
How to make trees to collapse/jump-level-up on leftarrow key pressed? Currently the widget behavior in my application (whether leftarrow is active or not on QtTrees) depends on which widget style is used on my KDE system. I want to force the proper navigation keys, how can I do that?
BTW I know I can write keyboard event myself, but there must be another way, some simple property set.

Onanymous
13th May 2010, 19:21
OK, I found this property is governed by one of the styleHints, now I can not find how to set up the styleHint for some particular widget, or maybe for the whole appllication, but within the current qstyle. (without writing a whole new qstyle)

aamer4yu
14th May 2010, 06:22
and whats that stylehint ? may be someone might benefit :rolleyes: