Answer the question
In order to leave comments, you need to log in
How to bind a Qt form?
There is a project, by the way, the main function of which is below, in which a scene is created and animated objects are drawn.
How can I launch another form window in parallel with this window, where, for example, I could set any values and pass them to main, and what is important, I repeat, in parallel with the main window running?
#include <QtWidgets>
#include <math.h>
#include "TFish.h"
#include "TAquarium.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
qsrand(QTime(0, 0, 0).secsTo(QTime::currentTime()));
QGraphicsScene scene;
scene.setSceneRect(-300, -300, 600, 600);
scene.setItemIndexMethod(QGraphicsScene::NoIndex);
TAquarium myAquarium;
QGraphicsView view(&scene);
myAquarium.Init(&scene, &view);
myAquarium.Run(&scene);
return app.exec();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question