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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:21:18+00:00 2026-05-25T15:21:18+00:00

I have been trying to get QLabel.setText in PySide working for several days, but

  • 0

I have been trying to get QLabel.setText in PySide working for several days, but no succes.

I have following code(simplified):

def GUI(self):
    self.data1=QtGui.QLabel()
    self.data2=QtGui.QLCDNumber()
    self.lcdTimer=QtGui.QLCDNumber()

def tick(time, self):
    self.lcdTimer.display(timetodisplay)  ## this one works
    self.data1.setText(somdatafromlist1)  ## this one not
    self.data2.display(somedatafromlist2) ## this one not

So, why I get an errors like this:

self.data2.display(somedatafromlist2)
AttributeError: 'PySide.QtGui.QImage' object has no attribute 'display'
self.data1.setText(somedatafromlist1)
TypeError: setText expected 2 arguments, got 1

And why is lcdTimer.display() working, but the other ones not.
What is the second argument .setText neededs?

The problem should not be in the somedatafromlist1 or somedatafromlist2.

I have tried to check out that self.lcdTimer and self.data2 are almost identical.

  • 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-25T15:21:19+00:00Added an answer on May 25, 2026 at 3:21 pm

    Get it working. Problem was that I had also other objects(ImageQt) a few hundreds lines later with names self.data1 and self.data2. def tick(time, self): was actually def tick(self, time):in my code.

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

Sidebar

Related Questions

I have been trying to get the following code working. It's a progress bar
I have been trying to get some basic dynamic code compilation working using the
I have been trying to get this working for quite a while now but
I have been trying to get this to work with several tutorials/answers here, but
I have been trying to get this android service working but I can not
I have been trying to get SqlCacheDependency working. I think I have everything set
I have been trying to get a simple spider to run with scrapy, but
I have been trying to get ActionBarSherlock ( http://www.actionbarsherlock.com ) working with my eclipse
I have been trying to get this query to work but I am stumbed
I have been trying to get a custom inventory script working in unrealscript. I

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.