gui not showing, or closing to fast to see
-
@micha_eleric
I happen to notice that afterui->textEdit_38
ui->textEdit_39
is absent, then you say it goes wrong atui->textEdit_40
. Don't know what you want 40+ text edits for, but anyway why not delete all afterui->textEdit_38
, make sure it works at that point. Then add the further ones in and see how it goes.@JonB said in gui not showing, or closing to fast to see:
@micha_eleric
I happen to notice that afterui->textEdit_38
ui->textEdit_39
is absent, then you say it goes wrong atui->textEdit_40
. Don't know what you want 40+ text edits for, but anyway why not delete all afterui->textEdit_38
, make sure it works at that point. Then add the further ones in and see how it goes.
runs finestd::cout << "InitTestBoard try 3 \n" << std::flush; // ui->textEdit_40->setFixedSize(30, 30); // ui->textEdit_41->setFixedSize(30, 30); ui->textEdit_42->setFixedSize(30, 30); ui->textEdit_43->setFixedSize(30, 30); ui->textEdit_44->setFixedSize(30, 30); ui->textEdit_45->setFixedSize(30, 30); std::cout << "InitTestBoard try end \n" << std::flush;
crashes
std::cout << "InitTestBoard try 3 \n" << std::flush; ui->textEdit_40->setFixedSize(30, 30); ui->textEdit_41->setFixedSize(30, 30); ui->textEdit_42->setFixedSize(30, 30); ui->textEdit_43->setFixedSize(30, 30); ui->textEdit_44->setFixedSize(30, 30); ui->textEdit_45->setFixedSize(30, 30); std::cout << "InitTestBoard try end \n" << std::flush;
-
found it
in CUi_MainWindow.h [the file that has gui layout] file 39, 40, and 41 are different -
@micha_eleric
So it looks like you have a problem with those twotextEdit
pointers? Btw you have done a clean rebuild, so theuic
has been run on the latest.ui
file? You have initialised theui
prior to this code?@JonB said in gui not showing, or closing to fast to see:
Btw you have done a clean rebuild, so the
uic
has been run on the latest.ui
file?@micha_eleric
Do a complete project rebuild/make some change in Designer to update the.ui
file and forceuic
to run on it again.ui_MainWindow.h
is a generated file; don't change it yourself, it will get overwritten. -
@JonB said in gui not showing, or closing to fast to see:
Btw you have done a clean rebuild, so the
uic
has been run on the latest.ui
file?@micha_eleric
Do a complete project rebuild/make some change in Designer to update the.ui
file and forceuic
to run on it again.ui_MainWindow.h
is a generated file; don't change it yourself, it will get overwritten.@JonB not sure where to ui or uic files are. if i still have them
-
@JonB not sure where to ui or uic files are. if i still have them
uic
is the User Interface Compiler, which does exactly what you've mentioned before.. creates an usable header from your*.ui
design template...
And every time you re-run it, your header file will be created or updated... so it makes no sense to edit the file yourself and change some object names -
uic
is the User Interface Compiler, which does exactly what you've mentioned before.. creates an usable header from your*.ui
design template...
And every time you re-run it, your header file will be created or updated... so it makes no sense to edit the file yourself and change some object names@Pl45m4 just found the .iu file.
trying to remember what i did 4 years ago -
@Pl45m4 just found the .iu file.
trying to remember what i did 4 years ago@micha_eleric
Go into Designer, make some small change, save, build, does it work now? -
@micha_eleric
Go into Designer, make some small change, save, build, does it work now?@JonB build is gray
-
@micha_eleric
Go into Designer, make some small change, save, build, does it work now?@JonB ok. default opens with qt creator, and build is gray
open with qt designer, and find no build -
@micha_eleric
Go into Designer, make some small change, save, build, does it work now?@JonB said in gui not showing, or closing to fast to see:
@micha_eleric
Go into Designer, make some small change, save, build, does it work now?where is build in qt designer?
-
@JonB said in gui not showing, or closing to fast to see:
@micha_eleric
Go into Designer, make some small change, save, build, does it work now?where is build in qt designer?
@micha_eleric said in gui not showing, or closing to fast to see:
where is build in qt designer?
There is no build in QtDesigner.
You build your project in QtCreator. And you also should rather edit ui files in QtCreator (QtDesigner is integrated there)...