Create a matrix from a .csv file
Solved
General and Desktop
-
Hmm
it seems cmake is confused.
about the includes.Lets demote the widget and then you can add it to the dialog as you normal does.
Demote is important else you get error for ever.
sec.
shots -
ok go to
GridDialog UI
and then right click the widget
THIS IS ULTRA IMPORTANT as ELSE it will fail again and again as it still remembers the promotion.
-
Next step is to then include matrixwidget.h and
make it like it.
I dont know your structure so not sure why it dont see it.
You have to make it like the include. -
@AliM93
yes.
You should still have the layout from before, correct ?
then in Grids constrcutorGridDialog::GridDialog(QWidget *parent) : QDialog(parent), ui(new Ui::GridDialog) { ui->setupUi(this); MatrixWidget * m = new MatrixWidget (this); ui->verticalLayout->addWidget(m); /// you name might differ for layout }
We dont need the plain widget any more. you can delete it. we use the layout