I have made a class like this:
{
Q_OBJECT
public:
Listbox
(int width,
QWidget *parent
= 0);
......
class Listbox : public QWidget
{
Q_OBJECT
public:
Listbox(int width, QWidget *parent = 0);
......
To copy to clipboard, switch view to plain text mode
and then in other class I define this:
QVector<Listbox> *listbox;
...
listbox = new QVector<Listbox>();
QVector<Listbox> *listbox;
...
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:
listbox.append(Listbox);
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????
Bookmarks