Results 1 to 2 of 2

Thread: Deleting controls

  1. #1
    Join Date
    May 2008
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Deleting controls

    Hi,

    I'm developing a class composed of checkboxes. I have added context menus for the check boxes for delete operation. How am I supposed to delete the widgets from the list when the delete method is invoked from the widget itself (via context menu). Is there an other method for removing the widgets with a context menu ?

    alisami

  2. #2
    Join Date
    May 2008
    Posts
    61
    Thanks
    9
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Deleting controls

    I guess I have to use the deleteLater() method

Similar Threads

  1. Deleting a part of a file
    By Sivert in forum General Programming
    Replies: 1
    Last Post: 25th March 2008, 23:43
  2. Deleting QProcess
    By user_mail07 in forum Qt Programming
    Replies: 7
    Last Post: 29th January 2008, 18:55
  3. Hiding controls changes spacing of other controls
    By MrGarbage in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2007, 20:47
  4. Putting static controls on top of QGraphicsView
    By durbrak in forum Qt Programming
    Replies: 3
    Last Post: 10th September 2007, 12:51
  5. Making 3D controls in QT, implementing a game loop in QT
    By smurrish in forum Qt Programming
    Replies: 10
    Last Post: 26th April 2006, 04:37

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.