Hi, I have a widget named FileWidget where is listWidget and fileViewer. I must promote listWidget to capturing right click mouse so now it is a class. constructor is explicit myListWidget(...);
I add to .h file:
namespace Ui
{
class myListWidgetClass;
}
and to costructor
Ui::myListWidgetClass *ui;
to *.cpp file add:
myListWidget::myListWidget(QWidget *parent, TableWidget *ref_TableWidget) :
QListWidget(parent), ui(new Ui::myListWidgetClass)
{
ui->setupUi(this);
}
but now it prints invalid use of incomplete type myListWidgetClass and forward declaration of it.
I don't know how to give a reference to ui.
(I think my code is right, bud I need to add something elsewhere where I call constructor of that)
thank you for replies
Bookmarks