Create a matrix from a .csv file
-
@AliM93
Yes click promote now. as you have added info.
I hope you spelled right :) -
@AliM93
Ok then we need button to show dialog.
so add button
Right click it and goto slot.
Choose Released
Add the code. ( want me to show that ?) -
wrote on 31 May 2020, 01:14 last edited by
we need to add thi button to the main_window?
-
@AliM93
Where ever you want to open it from.
Main win sounds good.#include "GridDialog.h" void MainWindow::on_pushButton_released() { GridDialog dia; dia.exec(); }
-
@AliM93
Where ever you want to open it from.
Main win sounds good.#include "GridDialog.h" void MainWindow::on_pushButton_released() { GridDialog dia; dia.exec(); }
-
@AliM93
Clicked = triggers when you click
Release = triggers when you release the left mouse button.
You can use any of them. -
Ok
super.
Now run it and click button :)
I hope it shows something. -
wrote on 31 May 2020, 01:21 last edited by
thank, only one thimg, i get error with your code, i can use Griddialog = new griddialog(this);
griddialog ->show(); -
thank, only one thimg, i get error with your code, i can use Griddialog = new griddialog(this);
griddialog ->show();Mind the case
Griddialog = new griddialog(this); <<< that is not correct class name and u missed * and name
GridDialog * dia = new GridDialog (this);
GridDialog <<< class name
-
wrote on 31 May 2020, 01:25 last edited by
i get error, i have something to declare in main_window.h?
-
@AliM93
well you must have the GridDialog.h include file -
wrote on 31 May 2020, 01:26 last edited by
ii've done that
-
@AliM93
Then you must have missspelled something as that is all you need.
Show excact code and the error -
wrote on 31 May 2020, 01:27 last edited by
maybe i have to include something also in griddialog?
-
@AliM93
Creator did that when you promoted.Please show real error :)
-
wrote on 31 May 2020, 01:29 last edited byThis post is deleted!
-
Try a clean build.
It seems correct. -
79/140