haha thinking in C++ is a little less targeted than what I was expecting. But I suppose the message is that Qt doesn't add any garbage collection functionality? I only ask because in the examples I've seen there is never any reimplementation of the destructors to delete the memory allocated to the new members...

For instance maybe something like this:

Qt Code:
  1. #ifndef DIALOG_H
  2. #define DIALOG_H
  3.  
  4. #include <QDialog>
  5. #include "fortuneserver.h"
  6.  
  7. class QLabel;
  8. class QPushButton;
  9.  
  10. class Dialog : public QDialog
  11. {
  12. Q_OBJECT
  13.  
  14. public:
  15. Dialog(QWidget *parent = 0);
  16.  
  17. private:
  18. QLabel *statusLabel;
  19. QPushButton *quitButton;
  20. FortuneServer server;
  21. };
  22.  
  23. #endif
To copy to clipboard, switch view to plain text mode 

I don't see a specialized destructor and I'm just curious when I would need the destructor.