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とQStandardItemウィジェットを使用してテーブルを作成しました。から垂直ヘッダーを削除するにはQStandardItemModel?
QTableView
QStandardItem
QStandardItemModel
正しく、ヘッダーを非表示にしたい場合は、ヘッダーのhide()メソッドを使用する必要があります。
hide()
QTableView * view = new QTableView(); view->verticalHeader()->hide();
忘れないで#include <QHeaderView>
#include <QHeaderView>