What is a better way to step through my application?
-
I am new to Qt and GUI programming, but was able to realize my first application.
What it does is showing the user some images and text and gives a button to
start the rest of the program. Then the program steps through different widgets
where the user is shown different images. The program steps to the next widget
after a certain function has been performed.So what I currently do is:
@
MyClass1 *myObject1 = new MyClass1(); // Where MyClass inherited from QWidget// do some function that takes long
MyClass2 *myObject2 = new MyClass2(); // Where MyClass inherited from QWidget
// do some function that takes long
MyClass3 *myObject3 = new MyClass3(); // Where MyClass inherited from QWidget
// do some function that takes long
@Now this works, but not as I desire and probably it can be done better.
In example for each widget a new window is opened, I tried to solve this by
@ MyClass3(this) @but the result was that the images weren't shown correctly.
-
One widget, showing one QLabel. Call QLabel::setPixmap() to change the image.
-
Thanks, works like a charm.