[Qt-interest] Odd dialog behavior

Timothy Reaves treaves at silverfieldstech.com
Sun Dec 13 01:44:16 CET 2009


On Dec 12, 2009, at 5:21 PM, Martin Hofius wrote:

> Am Samstag, 12. Dezember 2009 schrieb Timothy Reaves:
>> 	Hello all.  I have an odd problem.  I know it'll be hard to figure out
>> what's going on from what I put here, but I'll give it a try.
> ...
>> 	With the line edits, the strings get populated.  But they can not be
>> edited.  You can double-click the string to select it, but no key has any
>> effect.  I've insured they are editable, and enabled.  It's just that
>> nothing happens.  The checkboxes work, so it seem related to the keyboard. 
>> When you try to edit, you get the warning chime (on my Mac, this is the
>> same sound you get if you hit a key-combo that isn't bound - maybe it's the
>> input buffer - not sure).
> did you create any event filters methods (keypressed oder something similar)? 
> ths may be a reason for that behaviour ...
> 
> 
> or: you can write a simple event filter for keypressed and test if key press 
> events arrive at your plugin widget ;-)


	It seems to do with focus.  The app the plugin is for does an awful lot of customization, so it's probably related to that.  What I've just found that works is to have a slot wired to the list views signal of change.  In that method (where I populate the fields anyway) I call setFocus() on each line edit, then it works.

	It's working for the time being, but I need to investigate further.
	



More information about the Qt-interest-old mailing list