how to create QLineEdit.focusOutEvents?

Phil Thompson phil at river-bank.demon.co.uk
Sat Sep 28 04:51:50 EDT 2002


On Friday 27 September 2002 10:05 pm, Hans - G. Normann wrote:
> Hello
>
> I'm new in QT and Python. My first project: creating a GUI for Linux tar
> command. My prob:
>
> A QLineEdit contains a directory name. I can create this name by clicking
> (Fileselection maodule) or by type in. On lost focus, I want check the
> Directoryname, but how can I create slots, signals and the event for Line
> Edit?
>
> For creating gui, I'm using QT's designer. It's works fine, except
> focusOutEvent. Is there a (easy) sample?

Sub-class QLineEdit and re-implement focusOutEvent() in your sub-class.

Phil




More information about the Python-list mailing list