I have made a class like this:

Qt Code:
  1. class Listbox : public QWidget
  2. {
  3. Q_OBJECT
  4. public:
  5. Listbox(int width, QWidget *parent = 0);
  6. ......
To copy to clipboard, switch view to plain text mode 

and then in other class I define this:

Qt Code:
  1. QVector<Listbox> *listbox;
  2. ...
  3. listbox = new QVector<Listbox>();
To copy to clipboard, switch view to plain text mode 

And I try to append items to my vector like this:
Qt Code:
  1. listbox.append(Listbox);
To copy to clipboard, switch view to plain text mode 

But I can't. I get errors.

How can I append items to my empty qvector of Listboxes????