Results 1 to 1 of 1

Thread: How to add a QPushBotton in a QTreeView?

  1. #1
    Join Date
    Apr 2010
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Question How to add a QPushBotton in a QTreeView?

    Hello, I would add a QPushBotton for each row in a QTreeView, so that this button when clicked delete the row from the QTreeView.
    I have attached the code of what I've done. Unfortunately I have to click twice on the button to edit the field and then click the button delete.
    How do I delete the row by clicking once on the button? I hope some of you can help me.
    Thank you and goodbye.
    Attached Files Attached Files

Similar Threads

  1. QPushbotton - WordWrap
    By anju123 in forum Qt Programming
    Replies: 15
    Last Post: 24th January 2012, 21:41
  2. QTreeView
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 4th March 2009, 19:51
  3. QTreeView. Qt.4.4.1
    By janEUcitzen in forum Qt Programming
    Replies: 1
    Last Post: 15th November 2008, 08:53
  4. use QTreeView
    By totosugito in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2008, 09:33
  5. QTreeView
    By npc in forum Qt Programming
    Replies: 2
    Last Post: 24th January 2007, 07:53

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.