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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:37:51+00:00 2026-05-26T17:37:51+00:00

I am using Eclipse 3.7.1 with the latest PyDev add-in for Python coding. I

  • 0

I am using Eclipse 3.7.1 with the latest PyDev add-in for Python coding. I am using PyQt4. At the top of my file I have:

from PyQt4.QtCore import *
from PyQt4.QtGui import *

In addition, I have the PyQt4 tree included in the Project Explorer listing. However, eclipse still thinks the names like QMainWindow are undefined. The code runs fine. How may I get eclipse to recognize those names.

Thanks

  • 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-26T17:37:51+00:00Added an answer on May 26, 2026 at 5:37 pm

    PyQt is actually a wrapping of C++ Qt libraries. So they are not .py files and PyDev can’t analyze them to get what is in them. You need to add PyQt4 in the Forced Builtins tab, so that PyDev can use a Python shell to “look into” those libraries and know what is in them. That will also give you code-completion for PyQt.

    Apart from that, it is usually not a good practice to use from foo import *. You’ll be importing everything inside your namespace and you wouldn’t know which is coming from where. Moreover you might have name clashes that mask each other. Though it is unlikely with PyQt, still I’d suggest you get used to from PyQt4 import QtGui, QtCore and reference classes like QtGui.QMainWindow.

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

Sidebar

Related Questions

I'm using the latest version of Eclipse Galileo and I have to access the
I am using the latest Eclipse for Java EE & the latest JBoss Tools
I'm using Eclipse 3.4 and have configured the Java code formatter with all of
I have been using Eclipse as an IDE for a short amount of time
I am using JUnit 4, Maven 2 and latest Eclipse. Problem is simple: I
I'm running Windows 7, Python 2.6.4 and the latest version of Eclipse. I downloaded
I'm using Eclipse 3.5.2 on win7 with latest sdk update. Every time i create
I'm using Eclipse with Subversive SVN Team Provider 0.7.0.v20080425 as well as the latest
I'm using Eclipse to develop Android apps. I'm using the latest SDK and Eclipse
I am writing some scripts in Eclipse 2.7 RC4, using the latest Groovy Eclipse

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.