QtnProperty
QtnProperty copied to clipboard
QtnPropertyQColorLineEditBttnHandler::onToolButtonClicked crash
editorBase() will destoryed which is QColorDialog's parent
why not use as flow
auto property = &this->property();
auto reason = delegate()->editReason();
QColorDialog dlg(property->value());
if (dlg.exec() == QDialog::Accepted)
{
property->setValue(dlg.currentColor(), reason);
}
Do you have an example application to reproduce the crash? I don't see what can be crashed there.