Solved [Beginner][Transition between 2 pages] Errors by creating the second page
-
Hi all,
I am totally new to QT system. In order to try the basics operations, I am trying to create a simple QT empty project with two forms and, in each form, a button to pass from a form to the other. That's all.- I started by creating a new QT Quick Application - Empty
- I created the second form by Create new -> QT Designer form class -> Dialog with buttons
Nothing else. And, at this point, I see the following error. Why? Have I do some mistakes?
Thank you very much,
-
-
@Shadow-01 Please show the content of dialog.h
Also: does the project build? The errors are probably from code model. Just try to build. -
Thanks for the super fast reply!
This is the content of dialog.h.
The project doesn't build I see the following error.
-
-
No, I didn't! Now I have and it's compile. You solved a part of my problem at the speed of the light! :-)
Now I would ask you the last part, how can I put a buttom in the first form (I have only a QML file, without any .ui corresponding user interface), in order to open the second one?
Thanks again so much for your helping!
-
@Shadow-01 So, you are mixing QML and Qt Widgets? Is there a reason for this? If you need to do so see https://doc.qt.io/qt-5/qtqml-cppintegration-topic.html which is somewhat advanced topic.
-
Sorry, I have seen that I ask 2 things in the same post; I don't want to violate the rules of the forum and I put a new question. Thanks, post solved. I put the other question in a new discussion.