Creating Application for MP Server
-
@Pali
Hi
Super good with pictures.I would have a look at
http://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.htmlIt could be shaped into the Class Room Builder app and most of the code is already there.
For the selector widgets types
I would just have them outside the actual class room view
as it is easier than embedding as graphical item
in the Graphics View Framework but BOTH is very possible and easy. -
@mrjj I shall follow your advice. I just downloaded the http://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.html and opened it. I'm new to Qt Creator too. How can I use this diagramscene example for my new Class Room Builder project? In Qt Creator there is no such thing that one can save one project under other name, right? Must I import files from the diagramscene example project? If yes, how can I do that?
-
Hi
First of all its (should be) directly available in Creator.
In the Welcome screen there is "Examples" ( right side, under "Projects")
Should already be in there.I would then copy whole folder to new location and rename it for project.
Also rename the .pro file. ( with Creator closed)Then its CRB :)
Update:
To know where the project is. Open it from Examples and then right click any file in project and choose Show in Explorer -
@mrjj I did as you advices me. I have now the ClassRoomWithMPservers project, which contains every files and directories from the Diagramscene example project. I rename also the .pro file. When opened the new ClassRoomWithMPservers project in Qt Creator, there were created automatically the ClassRoomWithMPservers.pro.user file too out there and there remain the diagramscene.pro.user file also. I think that that the letter can be removed, right?
-
@Pali said in Creating Application for MP Server:
diagramscene.pro.user
the .user file can always be removed. The only exception is custom make steps as it seems
to be stored there. Its a file Creator use for the handling/settings of the project. so the old
diagramscene.pro.user can surely be removed. -
I'd start by looking at the general documentation of the Graphics View Framework to get a good grasp at what you can code with it.
You should also take the time to do some design in order have a good base plan to write your application. Rushing the implementation isn't a good thing to do.
-
Usually I start with the good old paper and pencil.
What kind of tools are you looking for ?
-
@SGaist I'm looking not for any tool yet.
As you can see, I used in this project first the Inkscape to create images of Controls ( for my future application ClassRoomWithMPservers ) just to see how they look.
Now I shall do first study the Graphics View Framework documentation. Then I shall maybe use Inkscape, or even Dia to visually present the application: it's GUI and maybe the Objects of Class in the application. I know for UML diagramm a little. -
@Pali
Hi
If you are into UML, i can highly recommend
http://staruml.io/
It can generate c++ from the class diagrams. ( free download) -