QtnProperty icon indicating copy to clipboard operation
QtnProperty copied to clipboard

QtnPropertyQColorLineEditBttnHandler::onToolButtonClicked crash

Open sloanyyc opened this issue 3 years ago • 1 comments

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);
}

sloanyyc avatar Jul 04 '21 21:07 sloanyyc

Do you have an example application to reproduce the crash? I don't see what can be crashed there.

kusharami avatar Jul 19 '21 18:07 kusharami