Results 1 to 2 of 2

Thread: Elide mode in QTableWidget and QTableView

  1. #1
    Join Date
    Sep 2010
    Posts
    62
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Elide mode in QTableWidget and QTableView

    Hi,

    Is it possible to control the elide mode in the separate cells/columns of QTableView and items of QTableWidget ?

    Thanks for any hint.
    Last edited by lotek; 26th November 2010 at 10:30.

  2. #2
    Join Date
    Jul 2010
    Posts
    41
    Thanks
    6
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Elide mode in QTableWidget and QTableView

    Quote Originally Posted by lotek View Post
    Hi,

    Is it possible to control the elide mode in the separate cells/columns of QTableView and items of QTableWidget ?

    Thanks for any hint.
    install a delegation on QTableWidget or QTableView, and set "QStyleOptionViewItem::textElideMode" in reimplementation of paint method.

Similar Threads

  1. QListView Text Elide Like QListWidget
    By Kel Solaar in forum Qt Programming
    Replies: 6
    Last Post: 13th May 2010, 05:44
  2. Replies: 1
    Last Post: 2nd November 2009, 12:02
  3. Replies: 9
    Last Post: 15th April 2009, 06:23
  4. qtablewidget and qtableview
    By dreamer in forum Qt Programming
    Replies: 1
    Last Post: 17th May 2008, 16:01
  5. Replies: 2
    Last Post: 22nd July 2007, 19:21

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.