[Qt-interest] Get focus for a specific widget automatically when primary widget get focus ?
Andre Haupt
andre at bitwigglers.org
Mon Nov 8 16:06:10 CET 2010
On Mon, Nov 08, 2010 at 09:42:37PM +0800, Aaron Lewis wrote:
> Hi,
> Conceive that inside primary QWidget , i got a QLineEdit and each time
> if my application was restored from minimized state , i need this
> QLineEdit to get focus automatically , and function dedicated for this
> requirement ?
You could reimplemtent QObject::event() for your primary widget (or use an event filter), grab the Show Event and set the focus to yout QLineEdit.
regards,
Andre
More information about the Qt-interest-old
mailing list