Hi,
Qt has a fine control over focus, too.
I think your problem is the focus policy: one widget at time may have the focus, and if one has it, you shall pass the focus to another widget to remove it or clear the focus for that widget. In Qt, QWidget has by default the policy of not accepting focus, while QLineEdit has the policy of accepting it: this is why, if you click on another input field, the original focus is loosed.
If you want to clear the focus from your QLineEdit by just clicking the window, cou can call yourWindow->setPolicy(Qt::StrongFocus).
HIH
~Aki
Bookmarks