Results 1 to 4 of 4

Thread: QTreeWidget (Row Check, Custom Sort)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2007
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows
    Thanks
    5

    Default QTreeWidget (Row Check, Custom Sort)

    Hello,

    I am trying to do the following three things with an application much like the one attached:

    1) Attach the check box to the full table row, as opposed to just an item in the table - Right now, it moves with the column if the user changes the column order. Is it possible for the check to always be left-most widget?

    2) Custom sort the IP address field - Can i make a custom sort routine for a single column of the table, or use one of the other item roles so I can have it sort directly on QHostAddress data, instead of the string data? (as in "192.168.0.1, 192.168.0.2, 192.168.0.101, 192.168.0.201" instead of "192.168.0.1, 192.168.0.101, 192.168.0.2, 192.168.0.201")

    3) Is there a way to quickly automate the hiding and showing of individual columns, the the common context menu on most file explorers' detail view?

    Thank you for your assistance.
    Attached Files Attached Files

Similar Threads

  1. Custom sort with QTableWidget
    By nicolas44 in forum Qt Programming
    Replies: 1
    Last Post: 9th August 2007, 00:47

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
  •  
Qt is a trademark of The Qt Company.