Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Oct 2008

    How do you remove videoWidget ?

    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;

    QBoxLayout *layout = new QVBoxLayout;

    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
    Super Contributor
    Join Date
    Oct 2009

    Re: How do you remove videoWidget ?

    Did you try

  3. #3
    Registered User
    Join Date
    Oct 2008

    Re: How do you remove videoWidget ?


    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
    Join Date
    Nov 2010

    Re: How do you remove videoWidget ?

    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?


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
    Replies: 4
    Last Post: 2004-02-25, 17:17
  4. Can't remove application
    By vphong in forum Symbian
    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