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 8764815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:07:30+00:00 2026-06-13T16:07:30+00:00

I have got 2 situation when trying to call QStatusBar.showMessage(). – 1st: Got error:

  • 0

I have got 2 situation when trying to call QStatusBar.showMessage().
– 1st: Got error: TypeError: 'QStatusBar' object is not callable
– 2nd: It does not effect and nothing happen. I got a blank status bar, without any error message.

Here the detail:

The MainWindow class:

    self.statusbar = QtGui.QStatusBar(MainWindow)
    self.statusbar.setObjectName(_fromUtf8("statusbar"))
    MainWindow.setStatusBar(self.statusbar)

This module has been imported to the main file. Then, in the main file, I have called QtGui.QStatusBar‘s showMessage() method, and got two following issues.

1. TypeError: ‘QStatusBar’ object is not callable

I have used following code statement to call QtGui.QStatusBar‘s showMessage() method:
self.ui.statusbar().showMessage("You have selected: %s" % self.filename, msecs= 5)

2. A blank statusbar; no effect and there’s any error message.

I have used this code statement:
self.ui.statusbar.showMessage("You have selected: %s" % self.filename, msecs= 5)
I haven’t got any error, but it’s also take no effect.

Someone can help me to figure out that what I have wrong and how to fix it? Thank you!

  • 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-06-13T16:07:31+00:00Added an answer on June 13, 2026 at 4:07 pm

    You use msecs= 5.
    This means “show the message for 5 milliseconds”!
    Please try with msecs=5000.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a specific situation where I've got an object that I want to
Presently Iam working in finding disparity of stereo pair. I have got a situation
So I've got a situation where we have a project with 10 developers. Each
I haven't got any code at the moment but I have a situation where
I got this exercise, is not a homework , I just trying to solve:
Got a little situation here where I am trying to cancel a file's upload.
i got a tricky situation here. im trying to center 3 divs inside my
I've got a situation where I have a series of member functions which produce
I am trying to handle flow control situation on producer end. I have a
I find myself in a situation that someone else must have got stuck 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.