Results 1 to 5 of 5

Thread: TextItems in QTreeview are showing "..." if resized (instead of a horz. scrollbar)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    131
    Thanks
    11
    Thanked 16 Times in 16 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default TextItems in QTreeview are showing "..." if resized (instead of a horz. scrollbar)

    Hello,

    I'm using a QTreeView to show data. Everything is fine. Excepted for one thing. Instead of showing a showing a horizontal scrollbar if the treeview is resized the text is shortened and shows "..." at the end (see the last four item in the example).

    Example:

    (The horizontal scrollbar is shown, because i used setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn );, but it is useless as seen on the screenshot)

    I'm using the default delegate with a custom model. How can I get a working scrollbar instead of "..."
    Attached Images Attached Images

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.