Results 1 to 2 of 2

Thread: How to edit QTreeWidget item?

  1. #1
    Join Date
    Mar 2012
    Posts
    14
    Platforms
    Windows
    Thanks
    1

    Default How to edit QTreeWidget item?

    Hi, i am using QTree Widget to display some number values..

    Whenever an object is added to the scene, I wan the child of the Qtree widget to count the total number of object..

    So i need the child to be able to update by itself..

    How do i access the child and modify its value?

    thanks..

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to edit QTreeWidget item?

    Like usually in C++ -- through a pointer to an instance (object).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 4
    Last Post: 8th April 2011, 20:59
  2. Replies: 1
    Last Post: 20th January 2010, 08:38
  3. QTreeWidget edit
    By baray98 in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2007, 15:44
  4. Replies: 8
    Last Post: 15th May 2007, 09: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
  •  
Qt is a trademark of The Qt Company.