Practicing an example on Docs
-
wrote on 27 Jul 2017, 07:42 last edited by
Hi,
I'm trying to walk though this example of Docs and create that simple app. I've done the works according to the instructions of the example correctly until the section Adding Menu Items. But the problem is the instructions say that the "type here" and "Menu" are put on the Form by default while it's not the fact in essence.
I got stuck to that section and don't know how to complete the app.
Could you please help me? -
Hi,
You should add which version of Qt and Qt Creator you are using.
-
wrote on 29 Jul 2017, 07:21 last edited by
My Qt's version is 5.9 and use Qt Creator 4.3.0.
-
hi
What is the issue ?
The menu bar is not there?
Why cannot you just click and type ?I dont understand what u mean by
"put on the Form by default while it's not the fact in essence." -
wrote on 29 Jul 2017, 07:29 last edited byThis post is deleted!
-
hi
What is the issue ?
The menu bar is not there?
Why cannot you just click and type ?I dont understand what u mean by
"put on the Form by default while it's not the fact in essence." -
@mrjj
docs say that the "type here" and "Menu" are put on the Form, but they are not. That is, none of "Menu" and "type here" is there. -
wrote on 29 Jul 2017, 08:33 last edited by
Thank you, the problem is solved.
The app runs but there is an issue with it. It doesn't show.txt
file for opening! -
Thank you, the problem is solved.
The app runs but there is an issue with it. It doesn't show.txt
file for opening!@tomy said in Practicing an example on Docs:
.txt file for opening!
Hi, it should
QString fileName = QFileDialog::getOpenFileName(this, tr("Open File"), QString(), tr("Text Files (.txt);;C++ Files (.cpp *.h)"));There seems to be ";;"
check docs (for getOpenFileName) that this is indeed correct syntax. -
wrote on 29 Jul 2017, 10:00 last edited by
Yes, the issue was solved.
Thanks.
5/10