[Qt-interest] selection / focus issue with QTableView

Darrik Mazey darrik.lists at dmtprogramming.com
Mon Dec 22 10:33:14 CET 2008


Tony Rietwyk wrote:
> Hi Darrik, 
> 
> I've had something similar, when popping up an error message during item
> selection changes. In this case, I posted a message to reposition to the
> original failing row. 
> 
> You can also try using a zero timer connected to a slot. Please let me know
> the result if you do. 
> 
> Hope that helps, 
> 
> Tony Rietwyk

Thanks, Tony.  The zero timer worked perfectly.  I still wonder if there 
isn't a better method.

I also seem to recall selecting a row in a slot connected to a model's 
dataChanged() signal working in previous versions of Qt, say around 4.2 
or so, although I haven't gone back to figure out exactly where (nor am 
I 100% certain of this).  If I ever get a spare moment, I'll experiment 
with some older versions of Qt.

Anyway, thanks for the help, Tony.  Much appreciated.

Cheers,
Darrik

-- 
Darrik Mazey
Developer
DMT Programming, LLC.
P.O. Box 91
Torrington, CT 06790
office: 330.983.9941
    fax: 330.983.9942
mobile: 330.808.2025
darrik at dmtprogramming.com

To obtain my public key, send an email to 
darrik at publickey.dmtprogramming.com.



More information about the Qt-interest-old mailing list