qtinuum / QtnProperty

Extended properties for Qt5
Apache License 2.0
427 stars 153 forks source link

Inplace editing is possible only after updating visuals #50

Open niello opened 3 years ago

niello commented 3 years ago

When calling propertyView()->setActiveProperty() sub-items are not created immediately. So if I send fake Enter key to the view synchronously it doesn't start inplace editing. I have to send it async at the next frame.

Is it possible to fix this? Is it also possible to create a method for triggering inplace editor without having user to send fake keyboard events? Would like something like this:

propertyView()->setActiveProperty(...); propertyView()->startEditingActiveProperty(); // create inplace editor and focus on it

See also: https://github.com/cegui/ceed-cpp/commit/c7c2f3a03f9fdd86adce7374ce0ab26ee20556b7#diff-583c1e7f1eb64f6f91c4b799dcca092a8388a8c63cca38f694237d404224cbbcR1352