Results 1 to 3 of 3

Thread: How to change the height of the Item in QTreeView when it is selected?

  1. #1
    Join Date
    Aug 2008
    Posts
    16
    Thanks
    3

    Default How to change the height of the Item in QTreeView when it is selected?

    Hi guys,
    I want to change the height of the item in QTreeView when it is selected, but I can't find the way, Thanks a lot for your suggestions!

  2. #2
    Join Date
    Jan 2011
    Location
    Verona(Italy)
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to change the height of the Item in QTreeView when it is selected?

    try to use stylesheet, something like this

    Qt Code:
    1. yourTree->setStyleSheet("QTreeWidget::item:selected{height:100px;}");
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Aug 2008
    Posts
    16
    Thanks
    3

    Default Re: How to change the height of the Item in QTreeView when it is selected?

    Zed, thanks for your advice, I try it, but it also doesn't work.

Similar Threads

  1. How change selected item rectangle on QGraphicsScene
    By xray2000 in forum Qt Programming
    Replies: 1
    Last Post: 18th May 2010, 17:43
  2. height property not adjusted when QTreeView item selected
    By hubbobubbo in forum Qt Programming
    Replies: 1
    Last Post: 22nd April 2010, 16:38
  3. Changing selected QTreeView item font
    By dima1000 in forum Newbie
    Replies: 5
    Last Post: 8th October 2009, 10:28
  4. QTreeView: selection behavior upon selected item removal
    By Pieter from Belgium in forum Qt Programming
    Replies: 6
    Last Post: 11th July 2007, 17:00
  5. Can't change the text display of a QTreeview item.
    By johnny_sparx in forum Qt Programming
    Replies: 3
    Last Post: 2nd June 2006, 02:03

Tags for this Thread

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.