Qt jpg image display

You could attach the image (as a pixmap) to a label then add that to your layout… … QPixmap image(“blah.jpg”); QLabel *imageLabel = new QLabel(); imageLabel->setPixmap(image); mainLayout.addWidget(imageLabel); … Apologies, this is using Jambi (Qt for Java) so the syntax is different, but the theory is the same.

How to apply a fade transition effect to Images using a Timer?

There are some problem to fix here: → fadeTimer.Interval = 10;: You’re (possibly) using the wrong Timer: the System.Timers.Timer’s Elapsed is raised in a ThreadPool Thread. Unless you have set the SynchronizingObject to a Control object, which is then used to marshal the handler calls, referencing a Control in the handler will cause trouble (cross-thread … Read more