Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 qtableview ,我想更改垂直标题以接受图标
含义,当行列时,显示一个图标“向上/向下”显示
我该怎么做
我正在使用 Qsqlquerymodel 和 Qtableview 小部件
您应该获取标题视图 (::verticalHeader),然后获取标题模型 (::model) 并为必要的行设置 Qt::DecorationRole (::setData)