Results 1 to 6 of 6

Thread: Qt video gui sample code

  1. #1
    Join Date
    Jan 2013
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt video gui sample code

    Hi everyone, I am newbie in Qt. I would like to display video in my qt gui. How can i display it? If you have any example concerned with that, pls kindly share me. Thanks millions.

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt video gui sample code


  3. #3
    Join Date
    Jan 2013
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt video gui sample code

    I know I need to use phonon-videoplayer. But I need to study some examples regarding to it. I created one gui with phonon videoplayer. But every time i need to load my video and play. But it didn't show in GUI form. it only show in designer form. For me, I want to click button to play. So that's y i need some examples to study. thanks.

  4. #4
    Join Date
    Jan 2013
    Location
    Temecula, CA
    Posts
    19
    Thanks
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt video gui sample code

    Well I'm a beginner too and haven't done too much exploring in Qt yet, but here goes:

    In the link Lesiok provided, it gives you all the definitions for public slots and such in that page.
    So I imagine that if you want a play button, you would use the play() function, with a button connected with a clicked() SIGNAL to a acceptable SLOT. Now it seems to me that the play() and pause() are completely separate, so either make two different buttons for each of them or one that switches between pause() and play(). I would try using the isPaused() and isPlaying() bools if I wanted to do that.

  5. #5
    Join Date
    Jan 2013
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt video gui sample code

    Quote Originally Posted by Salads View Post
    Well I'm a beginner too and haven't done too much exploring in Qt yet, but here goes:

    In the link Lesiok provided, it gives you all the definitions for public slots and such in that page.
    So I imagine that if you want a play button, you would use the play() function, with a button connected with a clicked() SIGNAL to a acceptable SLOT. Now it seems to me that the play() and pause() are completely separate, so either make two different buttons for each of them or one that switches between pause() and play(). I would try using the isPaused() and isPlaying() bools if I wanted to do that.



    Thanks for your information. Thanks

  6. #6
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt video gui sample code

    You have an examples in directory QT_DIR\demos\qmediaplayer and QT_DIR\examples\multimedia where QT_DIR is Yours Qt installation directory.

Similar Threads

  1. QUdpSocket sample code
    By alimooghashang in forum Qt Programming
    Replies: 3
    Last Post: 14th November 2013, 20:59
  2. Sample code to use QTreeWidget and QStackWidget
    By Jeff100 in forum Qt Programming
    Replies: 1
    Last Post: 22nd December 2010, 08:05
  3. Playing video using Phonon video widget
    By Leolander in forum Newbie
    Replies: 0
    Last Post: 26th February 2010, 06:15
  4. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 08:45

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.