Hi,
I wrote a simple Qt program, When I run the program, it told me:
QTreeWidget::setModel() - Changing the model of the QTreeWidget is not allowed.
The code just like below:
Qt Code:
// enable drag and drop dir_model_->setReadOnly(false); tree_view_->setModel(dir_model_);To copy to clipboard, switch view to plain text mode
I try to search Qt document and google, but I can not find any clue. How to solve this issue ?
Thanks.
Bookmarks