Create a matrix from a .csv file
-
wrote on 31 May 2020, 01:50 last edited by
i get this error when i clean.. but i don't know why
-
wrote on 31 May 2020, 01:52 last edited byThis post is deleted!
-
@AliM93
its due to you having the auto generated file open
just press Close. -
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 -
-
wrote on 31 May 2020, 01:57 last edited by
i have to do only this? morph into QWidget
-
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 to get rid of the promotion we tried. -
wrote on 31 May 2020, 01:58 last edited by
done, so now i have to include into file grid the matrix
-
@AliM93
yes and see if it will accept it.
Then we need to new a matrixwidget in GridDialog -
wrote on 31 May 2020, 02:00 last edited by
so i add the include of matrix.h in the grid.cpp
-
@AliM93
and it can compile? -
wrote on 31 May 2020, 02:00 last edited by
Build! thansk
-
wrote on 31 May 2020, 02:01 last edited by
i run it but obviouslt i can't see anything
-
wrote on 31 May 2020, 02:02 last edited by
because we have to add the matrix in the widget, right?
-
@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
-
wrote on 31 May 2020, 02:08 last edited by
done! but i only see the grid, not the content
-
@AliM93
\o/
Good work.
I hope you learn a few Creator tricks.we didnt paint the values yet :)
just all other stuff :=)But its 4 in the morning so rest must be tomorrow as its bed time for me :)
-
@AliM93
\o/
Good work.
I hope you learn a few Creator tricks.we didnt paint the values yet :)
just all other stuff :=)But its 4 in the morning so rest must be tomorrow as its bed time for me :)
-
wrote on 31 May 2020, 02:10 last edited by
anyway, ok for tomorrow, you have been too much patient with me, thanks. and for the first time, i can say thay i better undestand how qt works! i start to appreciate it
112/140