Results 1 to 3 of 3

Thread: how to add '+' and ' to QTableWidget

  1. #1
    Join Date
    Mar 2009
    Location
    Gansu,China
    Posts
    188
    Qt products
    Qt4
    Platforms
    Windows

    Default how to add '+' and ' to QTableWidget

    I want to add a '+' and '-' to QTableWidget,and when click '+',some rows is visible,when click '-',some rows is invisible.

    shows as attachments.

    expand.PNGclosed.PNG
    How to do?

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: how to add '+' and ' to QTableWidget

    isn't that a QTreeWidget as a cell widget? I'm not sure
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

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

    Default Re: how to add '+' and ' to QTableWidget

    It's just a QTreeWidget
    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: 1
    Last Post: 6th January 2011, 04:19
  2. qtablewidget bug?
    By vectori in forum Qt Programming
    Replies: 0
    Last Post: 30th July 2010, 12:46
  3. Please help with QTableWidget.
    By chris_helloworld in forum Qt Programming
    Replies: 14
    Last Post: 1st July 2010, 14:00
  4. QTableWidget
    By deeee in forum Qt Programming
    Replies: 6
    Last Post: 26th May 2010, 18:31
  5. QTableWidget
    By dragon in forum Qt Programming
    Replies: 14
    Last Post: 18th April 2007, 19:15

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.