[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] Retaining focus on a QLineEdit
From:       Eron Lloyd <elloyd () lancaster ! lib ! pa ! us>
Date:       2004-03-09 14:38:01
Message-ID: 200403090938.01943.elloyd () lancaster ! lib ! pa ! us
[Download RAW message or body]

Does anyone know of a way to properly allow a QLineEdit (or any widget for 
that matter) to retain keyboard focus? I'm writing an app that receives input 
from a barcode reader and emits a returnPressed() signal to a function that 
catches it, and processes the text() result. As many barcodes may be scanned, 
I'd like for the QLineEdit to regain focus after the function is called, so 
it can receive the next input. I think the problem is because it's on a page 
in a QWizard, which proceeds to the next page after picking up the CRLF. It 
seems the Next button always has keyboard focus, too. Could that be part of 
it?

Thanks!

Eron

-- 
Eron Lloyd
Technology Coordinator
Lancaster County Library
elloyd@lancaster.lib.pa.us
Phone: 717-239-2116
Fax: 717-394-3083
---
[This E-mail scanned for viruses by Declude Virus]

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic