Results 1 to 2 of 2

Thread: QTreeView | disable multiline,wrapping

  1. #1
    Join Date
    Jan 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Question QTreeView | disable multiline,wrapping

    Hello everybody,

    is there a simple way to disable the 'multiline diplay' of rows in a QTreeView if
    the text contains '\n' ?

    (at the moment '\n' are replaced with '|' in the QStandardItemModel::data() function,
    but I'm looking for a smarter solution , provided from Qt)

    thx in advance !
    Last edited by fleabite; 4th January 2007 at 17:06.

  2. #2
    Join Date
    Jan 2007
    Posts
    4
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTreeView | disable multiline,wrapping

    You may want to try and replace the \n with \\n

    Scott

Similar Threads

  1. QTreeView repaint
    By graeme in forum Qt Programming
    Replies: 17
    Last Post: 13th March 2012, 13:27
  2. Modify model data in QTreeView
    By YuriyRusinov in forum Qt Programming
    Replies: 6
    Last Post: 26th October 2006, 17:28
  3. paint QTreeView item !!
    By mcenatie in forum Qt Programming
    Replies: 2
    Last Post: 19th March 2006, 14:24
  4. QSortFilterProxyModel & QTreeView
    By Bear in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 15:04
  5. How to dispay an icon in the first column of QTreeView
    By yogeshm02 in forum Qt Programming
    Replies: 1
    Last Post: 5th January 2006, 15:51

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.