Results 1 to 4 of 4

Thread: How to get item position in QTreeWidget?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to get item position in QTreeWidget?

    please help.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: How to get item position in QTreeWidget?

    What do you mean with position?
    The x and y coordinates?
    The rownumber?

  3. #3
    Join Date
    Apr 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get item position in QTreeWidget?

    The x and y coordinates, I want to move a Button on this item.



    Quote Originally Posted by tbscope View Post
    What do you mean with position?
    The x and y coordinates?
    The rownumber?

  4. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to get item position in QTreeWidget?

    If you want to use buttons in views,,, look for delegates.. they are the proper way to do it.

    Also search in the forum, I guess this type questions have been asked many times before.

  5. The following user says thank you to aamer4yu for this useful post:

    wesley8086 (10th May 2010)

Similar Threads

  1. popupmenu for QTreeWidget's item when a particular item selected.
    By vinod sharma in forum Best Practices in Qt Programming
    Replies: 1
    Last Post: 22nd January 2010, 10:45
  2. Replies: 1
    Last Post: 20th January 2010, 08:38
  3. Item position in QMap?
    By lni in forum Qt Programming
    Replies: 15
    Last Post: 16th March 2009, 10:11
  4. position of an item in a QStringList
    By jaca in forum Newbie
    Replies: 4
    Last Post: 29th May 2008, 05:49
  5. How to get a position of the menu bar item?
    By Mad Max in forum Qt Programming
    Replies: 2
    Last Post: 20th November 2006, 03:20

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.