How to get code completion for PyQt using Pydev
- Go to "Window" -> "Preferences..." -> "Pydev" -> "Interpreter - Python"
- In the "Forced builtin libs" section, click "New..."
- Type in "PyQt4" and click "OK".
- Click "OK" to close the Preferences window.
Related posts
- PyQt: How to pass arguments while emitting a signal — posted 2008-01-29
- PyQt4 QItemDelegate example with QListView and QAbstractListModel — posted 2008-01-23
- How to install pyqt4 on ubuntu linux — posted 2008-01-15
- Python PyQt Tab Completion example — posted 2008-01-04
- How to capture the Tab key press event with PyQt 4.3 — posted 2008-01-03
- PyQt 4.3 Simple QAbstractListModel/ QlistView example — posted 2008-01-03
7
Comments
—
Comments feed for this post
#4 Saatvik commented on 2009-02-26:
For some reason, this still doesn't work for me. I'm using the eclipse that comes with Python(x,y) but I don't think that should make a difference. I've tried adding PyQt4 to both the PYTHONPATH and the Forced Builtin libs and nothing works. Also tried reinstalling PyQt4 without any success.
Thanks
#5 Al Dunstan commented on 2009-05-01:
I've had the same problem as Saatvik. I ran Eclipse from the command line, however, and noticed that it was throwing a ClassCastException when trying to do the completion, trying to cast a SystemASTManager to an ASTManager. I'm going to post the bug at Pydev shortly.
#6 Sebastián commented on 2009-06-21:
Works like a charm, thank you :) I was thinking of using eric4, but now I think I'll stick to Eclipse, the troll at Eric's splashscreen scares the hell out of me.
#7 bswix commented on 2010-05-07:
This works for auto-completion, but I cannot seem to get any call tip for function arguments? Does anyone have this working?
Post a comment
About
I'm Eliot and this is my notepad for programming topics such as Python, Django, Ubuntu, Emacs, etc... more »
Search Blog
Tags
-
algorithms
(5)
-
aws
(9)
-
blogproject
(20)
-
c_cplusplus
(12)
-
cardstore
(8)
-
colinux
(2)
-
concurrency
(13)
-
conkeror
(2)
-
core
(2)
-
cygwin
(17)
-
datastructures
(14)
-
datetime
(4)
-
decorators
(4)
-
django
(40)
-
emacs
(22)
-
files_directories
(11)
-
git
(5)
-
hardware
(5)
-
install_setup
(8)
-
javascript
(3)
-
keyboard
(9)
-
matplotlib
(5)
-
mercurial
(4)
-
nginx
(2)
-
persistence
(5)
-
preferences
(7)
-
processes
(4)
-
pyqt
(18)
-
python
(144)
-
ratpoison
(3)
-
regexes
(6)
-
rsync
(3)
-
softwaretools
(17)
-
sql
(14)
-
ssh
(10)
-
subversion
(6)
-
twisted
(7)
-
ubuntu
(65)
-
urxvt
(5)
-
vxworks
(25)
-
webdev
(5)
-
wmii
(7)
Blogroll
- Adam Gomaa
- Alex Clemesha
- Amir Salihefendic
- Armin Ronacher
- David Beazley
- David Ziegler
- Duncan McGreggor
- Gareth Rushgrave
- Glyph Lefkowitz
- Guido van Rossum
- Ian Bicking
- Jacob Kaplan-Moss
- James Bennett
- James Tauber
- Jesper Noehr
- Marty Alchin
- Matt Harrison
- Nikolay Kolev
- Parand Darugar
- Peter Baumgartner
- Peter Bengtsson
- Rob Hudson
- Simon Willison
- Will McGugan
#1 Andrea Grandi commented on 2008-04-29:
Code completion now works fine for me, except for some classes. For example:
if I write: from PyQt4 import
it only shows me two class available: QtCore and QtGui, for example I cannot see QtNetwork, but if I write it by hand, my code execute it without problems.
Any suggestion about this problem?