Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7506913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:22:58+00:00 2026-05-29T22:22:58+00:00

i was wondering how to set a phonon player to full screen? im trying

  • 0

i was wondering how to set a phonon player to full screen?
im trying this codes.

    if not self.ui.videoPlayer.isFullScreen():
        self.ui.videoPlayer.enterFullScreen()
    else: 
        self.ui.videoPlayer.exitFullScreen()

but i keep on getting this error message

TypeError: ‘sip.methoddescriptor’ object is not callable

the code above works is from a sample project. the original code was

def full(self):
    if not self.videoWidget.isFullScreen():
        self.videoWidget.enterFullScreen()
    else: 
        self.videoWidget.exitFullScreen()

im recreating it in PyQT and it seems hard for me.
can anyone please guide me on what im missing(having a hunch about it)
or what im doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T22:22:58+00:00Added an answer on May 29, 2026 at 10:22 pm

    A VideoPlayer is not the same thing as a VideoWidget.

    VideoPlayer is a subclass of QWidget, so it will have an isFullScreen method – but it won’t have the methods enterFullScreen and exitFullScreen, which belong to the VideoWidget class.

    However, the VideoPlayer class has a videoWidget method which returns the instance of the video widget it uses, so your code example should probably be changed to:

    videoWidget = self.ui.videoPlayer.videoWidget()
    if videoWidget.isFullScreen():
        videoWidget.exitFullScreen()
    else: 
        videoWidget.enterFullScreen()
    

    EDIT

    To provide a method for exiting fullscreen mode, set up a keyboard shortcut:

    class MainWindow(QtGui.QMainWindow):
        def __init__(self)
            ...
            self.shortcutFull = QtGui.QShortcut(self)
            self.shortcutFull.setKey(QtGui.QKeySequence('F11'))
            self.shortcutFull.setContext(QtCore.Qt.ApplicationShortcut)
            self.shortcutFull.activated.connect(self.handleFullScreen)
    
        def handleFullScreen(self):
            videoWidget = self.ui.videoPlayer.videoWidget()
            if videoWidget.isFullScreen():
                videoWidget.exitFullScreen()
            else: 
                videoWidget.enterFullScreen()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering: I'm trying to set up an adaptive image handler in Coldfusion8, which
I was wondering if I can set the splash screen to a programmatic SplashScreen
im wondering, how set minHeight to webView in activity class, not in xml file.
I'm wondering if this is possible to set the permissions of an additional calendar
I am wondering when I set something like this Trigger trigger = TriggerUtils.MakeDailyTrigger(abc, 5,
I was wondering how to set up a database for storing actions people recently
Im just wondering how to set a default zoom on my google maps application
I'm wondering how to set the max possible time limit for a php page,
I am wondering how to set up maven to run concordion tests having a
Hey, I was wondering how to set the focus to a text box in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.