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.
我需要如下图所示的东西,但我找不到使用 Qt 4.3.3 的方法......
我不认为有一个内置函数可以做到这一点。最好的方法是继承 QTableView 并覆盖 draw 函数以在没有要显示的元素时绘制一些文本。使用插槽
int rowCountChanged(int,int)
找出行数何时为零。