Results 1 to 4 of 4

Thread: Help!how do i schow a picture and than 5 seconds later i want to show another picture

  1. #1
    Join Date
    Feb 2012
    Posts
    19
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Help!how do i schow a picture and than 5 seconds later i want to show another picture

    Hello everyone

    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

  2. #2
    Join Date
    Jan 2012
    Posts
    66
    Thanks
    20
    Thanked 2 Times in 2 Posts
    Platforms
    Windows

    Default 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.

  3. #3
    Join Date
    Feb 2012
    Posts
    19
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Help!how do i schow a picture and than 5 seconds later i want to show another pic

    Quote Originally Posted by wayfaerer View Post
    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.


    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
    Last edited by arninio123; 8th March 2012 at 20:33.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default 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.

Similar Threads

  1. Set a picture for the background
    By Roman Novoselov in forum Qwt
    Replies: 4
    Last Post: 9th February 2012, 12:10
  2. How to create PIP (Picture In Picture) on QwebView
    By luckychap in forum Qt Programming
    Replies: 0
    Last Post: 18th July 2011, 12:47
  3. Qt Picture change
    By Raymond in forum Qt Programming
    Replies: 2
    Last Post: 22nd February 2010, 03:19
  4. Picture on a button
    By zgulser in forum Qt Tools
    Replies: 4
    Last Post: 13th January 2009, 04:03
  5. wait copy picture then show it
    By raphaelf in forum Newbie
    Replies: 6
    Last Post: 5th November 2006, 12:09

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.