Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
@mrjj done! also the layout
@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 ?)
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(); }
@mrjj which is the difference between released and clicked? (curiosity)
Done.
@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.
thank, only one thimg, i get error with your code, i can use Griddialog = new griddialog(this); griddialog ->show();
@AliM93
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
i get error, i have something to declare in main_window.h?
@AliM93 well you must have the GridDialog.h include file
ii've done that
@AliM93 Then you must have missspelled something as that is all you need. Show excact code and the error
maybe i have to include something also in griddialog?
@AliM93 Creator did that when you promoted.
Please show real error :)
@AliM93 i try to put what you suggest me in the function f button released, but nothing changes
Try a clean build. It seems correct.
I think we did the same so not sure why you cannot compile.
Wairt you have odd error
That in from of MainWindow is wrong!
and u use picture again so cant paste .
That is not legal syntax