Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User AABEECEE's Avatar
    Join Date
    Oct 2008
    Posts
    17
    There are several examples of using QVideoWidget together with QMediaPlayer. The "standard" way of getting the video on the screen is something like this:
    {
    ...
    player = new QMediaPlayer(this);

    videoWidget = new QVideoWidget;
    videoWidget->setMediaObject(player);

    QBoxLayout *layout = new QVBoxLayout;
    layout->addWidget(videoWidget);
    ...
    }

    So far so good and most (all?) of the examples I've seen end up here: video is playing nicely on the screen and after that it is sufficient to exit the application.
    But what if you want to do something else after the video comes to its end? How do you remove it from the screen?
    I have tried several strategies for this but nothing seems to work.

    What is the proper way of clearing the screen from the video (after the video) and putting something else on view instead?

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Did you try
    Code:
    layout->removeWidget(videoWidget);
    ?

  3. #3
    Registered User AABEECEE's Avatar
    Join Date
    Oct 2008
    Posts
    17
    divanov,

    Yes, sure.
    But the last image where the video ends does not go away from the screen.

    By the way, running this on N5800. If that matters.

  4. #4
    Registered User travisw's Avatar
    Join Date
    Nov 2010
    Posts
    22
    Hi,
    I am having a similar issue and having a very difficult time figuring it out.

    When I try to go back after showing the videowidget I am able to show the new view with setCentralWidget however I cannot interact with it, there's no focus on it.
    It's almost like something from the previously shown videowidget is transparently over-laid over it.

    I have tried many different combinations of trying to hide, removeWidget, etc. but no luck.

    Any ideas on how to get past this?

    Thanks,
    Travis

Similar Threads

  1. How to Safely remove Mobile from PC
    By Computer_time in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2009-07-30, 02:05
  2. remove a file from project explorer
    By Jeepy in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2009-02-19, 13:43
  3. 6600 - fails to remove package
    By dchiaramello in forum Symbian C++
    Replies: 4
    Last Post: 2004-02-25, 17:17
  4. Can't remove application
    By vphong in forum Symbian C++
    Replies: 1
    Last Post: 2002-12-31, 04:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved