firemail's Archiver
论坛
›
常见错误
› model/view 双击树控件就卡死
Qter
发表于 2018-4-5 12:26:54
model/view 双击树控件就卡死
QModelIndex RecordTreeModel::index(int row, int column, const QModelIndex &parent) const
{
if (!hasIndex(row, column, parent))
return QModelIndex();
if (parent.isValid())
return QModelIndex();
加上红色的两行
页:
[1]
查看完整版本:
model/view 双击树控件就卡死