i set the lable model as this below ,however ,the lable still can be edit,i can't find any properties to stop this!
when i double clicked the item ,the lable can be renamed
Qt Code:
model->setData(model->index(0,0),tr("This is input well data file"),Qt::WhatsThisRole| Qt::ItemIsEditable);To copy to clipboard, switch view to plain text mode
Bookmarks