Create a matrix from a .csv file
-
wrote on 31 May 2020, 00:56 last edited by
yes but which dialog i have to open? i don't have in this file.. can i add?
-
@AliM93
Ohh, you dont have dialog yet ?
Lets add new blank one.
Sec. shots. -
-
Again, select the File New as when we made the widget.
Choose Designer Form class
Then choose a dialog
Give it a good name
Press NExt, NExt
Now you have this and you add a QWidget to it and promote it.
-
@AliM93
yes in left side Widget.
-
wrote on 31 May 2020, 01:08 last edited byThis post is deleted!
-
-
Hi
Nope. When you use promotion, Creator adds the needed included. You tell it what file
in the promotion dialog. ( look at image)
and after you promoted it.
Then right click outside the widget and add a layout so our widget follow size of dialog automatically -
@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
69/140