F
F
FireShip2016-11-13 22:59:30
Qt
FireShip, 2016-11-13 22:59:30

How to correctly inherit a QT widget?

The task is to make a slot to call the function by double clicking on the widget from QWidgetList.
With the help of qt designer, I kind of made promoted widgets, this is how the header file described:

class FilesView : public QWidget
{
    Q_OBJECT;
public:
    FilesView(QWidget *parent = 0);
};

and the implementation itself
FilesView::FilesView(QWidget* parent)
        : QListWidget(parent)
{}

when compiling, it gives errors about the absence of QListWidget methods. Aren't they inherited? CHADNT?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2016-11-13
@FireShip

You need to inherit from QListWidget ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question