Results 1 to 4 of 4

Thread: Destroy() function

  1. #1
    Join Date
    Jul 2006
    Posts
    26
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Destroy() function

    Hi, I'd like to know if calling the destroy() fuction on a QGroupBox will also destroy the layout which was set using GP->setLayout(layout) and the widgets that were added to this layout?

    Are they considered as childs? destroy() destroys the childs as well.

    Thx

  2. #2
    Join Date
    Jul 2006
    Posts
    26
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Destroy() function

    Ill ask the question in a more general way...

    I have a popup window in my QT app, I want a checkbox to set wether or not a TextEdit appears. So when u check the checkbox, a textedit appears, when u uncheck it, it disapears.

    Maybe instead of destroying the widget, i should only set them invisible?
    I suppose it wont build up in the memory since closing the window will destroy the widgets anyways....?

  3. #3
    Join Date
    Jul 2006
    Posts
    26
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Destroy() function

    Oh well, just found out there is a removeWidget() function, It doesnt delete the items that were added to the groupbox tho...
    Last edited by lewis; 20th July 2006 at 19:51.

  4. #4
    Join Date
    Jul 2006
    Posts
    26
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Destroy() function

    Lets try setHidden()!!!

Similar Threads

  1. Qt 4.1.4 plugin QPSQL
    By jcr in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd June 2006, 22:55
  2. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52
  3. Unable to execute in Debug Mode
    By Kapil in forum Installation and Deployment
    Replies: 38
    Last Post: 5th April 2006, 07:27
  4. use libs under qt4
    By raphaelf in forum Qt Programming
    Replies: 6
    Last Post: 27th February 2006, 17:59
  5. lQtGuid4 error - Compiler setting problem
    By Kapil in forum Installation and Deployment
    Replies: 7
    Last Post: 10th February 2006, 09:30

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.