Results 1 to 2 of 2

Thread: How to hide softkeys while playing a video

  1. #1
    Join Date
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default How to hide softkeys while playing a video

    Hello everyone,

    I just want to ask something regarding the softkeys. I am a newbie on Qt development. I've already searched for answers that nobody seemed to have. So i decided to post my question as a new thread.

    As a summary, what i want to do is, I want to hide the softkeys (Exit and the blank button) when my media player plays a video.

    I have a media player code which plays video streaming. I can toggle between fullscreen and the normal window by touching the screen while the video is playing. But I got this problem of the softkeys showing when they shouldn't whenever i toggle between fullscreen and the normal screen. Please see the following screenshot for the behavior I am encountering:

    This is the screenshot while the video is playing on normal screen, not in fullscreen: http://i129.photobucket.com/albums/p...t/DSC01341.jpg
    Please also take note of the close button on the lower right part of the screen.

    And this is the screenshot when video is playing in fullscreen mode:
    http://i129.photobucket.com/albums/p220/aya-aeris/Bug%20Report/DSC01342.jpg

    This is alright.

    The problem comes here, when i toggle between the normal screen and full screen for at least twice (i.e., I touch the screen for 4 times), please see the image:
    http://i129.photobucket.com/albums/p...t/DSC01343.jpg
    The softkeys displayed when they shouldn't. and they are also displayed when in full screen mode. And see how the softkeys covered my close button on the lower right. I can't close my media player and I cannot go back to my application. I have to Exit and restart it again.

    I've tried raise(), I read it somewhere, it works great in my splash screen on this app, but it doesn't work on the my media player.

    I also tried setWindowFlags( windowFlags()& Qt::WindowSoftkeysVisibleHint ), but the video could not enter the full screen mode for some reason I don't know. and this is not what I want.

    I wanted to paste my code here, but it is a bit long. >__<

    If anyone has a solution for this, please let me know. I'm a noob and I'm going crazy over this problem of mine.

    Thank you very much for any assistance that you can provide!

  2. #2
    Join Date
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: How to hide softkeys while playing a video

    Apparently, this was a qt bug that was already resolved in qt 4.7.3. I tested our media player with n8 and qt 4.7.3 and the softkeys are not showing anymore when the video plays in full screen.

Similar Threads

  1. Playing a Video
    By Qt_Kid in forum Newbie
    Replies: 1
    Last Post: 13th May 2011, 13:24
  2. how to hide softkeys in some models? like N8,
    By call_from in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 5th November 2010, 06:39
  3. Playing video using Phonon video widget
    By Leolander in forum Newbie
    Replies: 0
    Last Post: 26th February 2010, 06:15
  4. Playing video in qt Embedded
    By Sathyan in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 17th August 2009, 10:18
  5. Playing Video file using Qt
    By sarode in forum Qt Programming
    Replies: 3
    Last Post: 26th March 2007, 18:35

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.