Is it ok to declare for example QLabel as a private member of some CustomWidget class and "place" it in CustomWidget using setParent or Layouts...
Qt Code:
  1. class CustomWidget : public QWidget {
  2. Q_OBJECT
  3. public:
  4. CustomWidget(QWidget *parent = 0);
  5. private:
  6. QLabel oneL;
  7. };
To copy to clipboard, switch view to plain text mode 
What about Qt's "garbage collector" in this case?
Shall I rather keep pointers to QWidgets I want to use in my CustomWidget instance?
What differs these two methods?