[PyQt] QCompleter in a QLineEdit

Hans-Peter Jansen hpj at urpla.net
Wed May 4 21:23:25 BST 2011


On Wednesday 27 April 2011, 08:29:48 C. B. Esquire wrote:
> (let me know if the space/tab formatting didn't come through and I'll
> attach the python script instead)
>
> I'm trying to create a QCompleter, which works fine if I just build
> the QLineEdit.
> However if I drop the QLineEdit into a QMainWindow, the QCompleter no
> longer works. What am I doing wrong here?

I don't know. It's working fine here including dropping the model into 
the LineEdit class.

Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: completer2.py
Type: application/x-python
Size: 2173 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110504/a3167ddd/attachment.bin>


More information about the PyQt mailing list