Results 1 to 1 of 1

Thread: Editable QTreeView with expandable cells

  1. #1
    Join Date
    Apr 2010
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Editable QTreeView with expandable cells

    Hi everyone,

    I tried to write an editable table based on QTreeView with wordwraped content in cells which in turn should expand in height (that whole text was visible without ellipsis) like usual cells in tables like in MSWord, but have met insuperable obstacles:

    first - i can't set fixed cell size, i'm overloading sizeHint function in my delegate, but i'm unable to set fixed width for cell

    second - i can't make text display in cells wordwraped. For this i used void QTreeWidget::setItemWidget ( QTreeWidgetItem * item, int column, QWidget * widget ), but it works only for readonly solutions. And i haven't come up with any other idea.

    Can such behavior of QTreeView be realized? And how to solve those problems of mine?

    Thanks in advance
    Serge
    Last edited by corrado; 19th April 2010 at 18:00.

Similar Threads

  1. Editable QTreeView
    By winston2020 in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2009, 13:18
  2. QTreeView and expandable items
    By SiLiZiUMM in forum Qt Programming
    Replies: 6
    Last Post: 29th April 2008, 13:21
  3. Editable cells in QTableView
    By TheRonin in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2006, 17:39
  4. QTable with expandable cells
    By sunil.thaha in forum Qt Programming
    Replies: 2
    Last Post: 20th April 2006, 12:42
  5. [QT4] QTreeView and expandable nodes
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2006, 16:52

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.