Results 1 to 3 of 3

Thread: TreeWidget change text at top of the colum

  1. #1
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default TreeWidget change text at top of the colum

    Hi all!

    How can I change the text at the top of a treewidget? At the moment I have 1 2 3 4 5 but I want words!

    thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: TreeWidget change text at top of the colum


  3. #3
    Join Date
    Jun 2010
    Posts
    100
    Thanks
    13
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: TreeWidget change text at top of the colum

    Quote Originally Posted by Lykurg View Post
    Thank you!

    Just for the record

    Qt Code:
    1. QStringList HeaderLabels;
    2. HeaderLabels << "Message Text" << "Message ID" << "Message Type" << "Task" << "Task ID";
    3. ui.treeWidget->setHeaderLabels(HeaderLabels);
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 2
    Last Post: 18th May 2010, 22:44
  2. How to change the Label text
    By grsandeep85 in forum Qt Programming
    Replies: 2
    Last Post: 15th September 2009, 12:57
  3. Replies: 13
    Last Post: 29th April 2009, 15:51
  4. QCcompleter , colum probelm
    By deepinlife in forum Qt Programming
    Replies: 7
    Last Post: 10th April 2008, 07:46
  5. 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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.