Results 1 to 3 of 3

Thread: TreeView keyboard navigation

  1. #1
    Join Date
    May 2010
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default TreeView keyboard navigation

    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.

  2. #2
    Join Date
    May 2010
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: TreeView keyboard navigation

    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)

  3. #3
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: TreeView keyboard navigation

    and whats that stylehint ? may be someone might benefit

Similar Threads

  1. Replies: 12
    Last Post: 6th October 2009, 11:27
  2. SQL query - navigation buttons
    By apffal in forum Qt Programming
    Replies: 1
    Last Post: 5th August 2009, 09:38
  3. Navigation bar similar to Dolphin
    By dentharg in forum Qt Programming
    Replies: 1
    Last Post: 12th January 2009, 14:25
  4. GraphicsScene navigation widget
    By EricTheFruitbat in forum Qt Programming
    Replies: 4
    Last Post: 2nd April 2007, 23:11
  5. Tab navigation and QListWidget
    By Arthur in forum Qt Programming
    Replies: 5
    Last Post: 9th March 2007, 20:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.