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.
QStandardItemModel中で使用していQtableviewます。
QStandardItemModel
Qtableview
テーブルビューのテキストをExcelシートに保存したいのですが、コンテンツをExcelシートにエクスポートするためのQTクラスはありますか?
または、そのためにいくつかの外部ライブラリを使用する必要があります?
?
そのための Qt クラスはありません。すべての列と行をループして QStandardItemModel::item(row, column)->text() を使用するだけです
古い Excel 形式 (ファイル) には ExcelFormat ライブラリを、新しいもの ( ファイル) には LibExcel ライブラリのようなものを使用できます。そのためのクラスは Qt にありません。私は最近 ExcelFormat を使用しましたが、正常に動作し、他のライブラリについては何も言えません。.xls.xlsx
.xls
.xlsx