Results 1 to 4 of 4

Thread: Use QTableWidget or QTreeWidget for show a listview control?

  1. #1

    Default Use QTableWidget or QTreeWidget for show a listview control?

    Hi all,

    I'm a Windows programmer but I'm new to Qt programming and I still know how to use the various widgets for my purpose. I need to show a control with columns. In Windows programming this is a native control called "listview" but for have a similat control in Qt 4 what widgets is better to use? In the beginning I started to use QTableView since it seem to me the most similar control but now I'm starting to think that laso QtreeWidgets could be a good candidate.

    Can you give me a suggestion regarding the best way to follow?

    Thank you

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Use QTableWidget or QTreeWidget for show a listview control?

    It could be. Depends on what you want exactly.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. #3

    Default Re: Use QTableWidget or QTreeWidget for show a listview control?

    I want a component showing items with columns, exactly as the Windows native control called ListView...

  4. #4
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Use QTableWidget or QTreeWidget for show a listview control?

    I think QTreeView/QTreeWidget will best suit your needs.
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

Similar Threads

  1. Replies: 0
    Last Post: 31st August 2010, 06:11
  2. Replies: 1
    Last Post: 25th May 2010, 14:44
  3. Replies: 3
    Last Post: 22nd March 2010, 13:50
  4. Replies: 2
    Last Post: 17th November 2009, 16:14
  5. How to show my toolTip in QTreeWidget?
    By cspp in forum Qt Programming
    Replies: 2
    Last Post: 14th May 2009, 12:09

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.