Qt Centre Forum >
Qt >
Newbie > Help!how do i schow a picture and than 5 seconds later i want to show another picture
View Full Version : Help!how do i schow a picture and than 5 seconds later i want to show another picture
arninio123
8th March 2012, 13:52
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
wayfaerer
8th March 2012, 17:01
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.
arninio123
8th March 2012, 20:33
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
ChrisW67
8th March 2012, 23:51
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.