Vor
Vor

Reputation: 35129

Eclipse doesn't see the PySide classes

I have a trouble with PySide/PyDev/Eclipse

I typed this code:

import sys
from PySide.QtWebKit import *
from PySide.QtCore import *
from PySide.QtGui import *

app=QApplication(sys.argv)

web=QWebView()
web.load(QUrl('http://google.com'))
web.show()

enter image description here

Eclipse shows red crosses on the side, and says QApplication and QWebView and so on, are undefined varibales. The problem is that program compiles without errors and gives me right result. I checked PYTHONPATH and it shows PySide folder over there. Don't know what to do, obviously I can write programs with this issue, but it's just annoying =)

Upvotes: 2

Views: 1595

Answers (1)

Anonymous Coward
Anonymous Coward

Reputation: 6226

Adding PySide to your Forced Builtins should solve that problem.

Upvotes: 4

Related Questions