click inside a treeview
Solved
General and Desktop
-
I have two treeview, in a one I do "copy" and in the other I do "paste", but when I click "paste" QVariant definitivo = _treeView->model()->data(index) , data results invalid, beacuse I don't click in a row, so How can I write? if (data == invalid) results there is an error
-
Hi,
QVariant has a method for that: QVariant::isValid.