Help!how do i schow a picture and than 5 seconds later i want to show another picture
Hello everyone :D
I want to make a programe where i show a picture from somewhere on my pc.
and that the picture change to another picture after a minute or something.
How can i show a picture thats on my pc?
Or how do i need to start?
Thank you already :D
Re: Help!how do i schow a picture and than 5 seconds later i want to show another pic
There are numerous ways to show pictures. For example, you could have a QGraphicsPixmapItem in a QGraphicsScene, and display it with a view. Or you could paint it as a QPixmap onto a QPainter.
To time the five seconds, you can use QTimer.
To allow users navigate to a picture on their hard drive, you could use QFileDialog.
Re: Help!how do i schow a picture and than 5 seconds later i want to show another pic
Quote:
Originally Posted by
wayfaerer
There are numerous ways to show pictures. For example, you could have a QGraphicsPixmapItem in a QGraphicsScene, and display it with a view. Or you could paint it as a QPixmap onto a QPainter.
To time the five seconds, you can use QTimer.
To allow users navigate to a picture on their hard drive, you could use QFileDialog.
Ok Thanks i will try it now. :D
Added after 1 10 minutes:
can you give me a little example for how to find a picture on my pc en show it :s
Re: Help!how do i schow a picture and than 5 seconds later i want to show another pic
Open the Qt docs and search/read, or run qtdemo. They won't bite, and you might find useful things like the Image viewer example.