Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.0.0
-
None
-
Microsoft Windows 7 Ultimate 6.1.7601 Service Pack 1 Build 7601 x64-based PC
Qt5 1e7d6ec
MinGW-w64 i686 GCC 4.7.1 (rubenvb)
-
92c739cf50b18b8abdc1b30480b75cc6b27cf5bf
Description
Selected cells are no longer shown as selected cells, but rather the content is shown selected, the rest of the cell remains unselected.
(Top, Qt4 4.8.2)
(Bottom, Qt5 1e7d6ec)
#include <QtCore> #include <QtGui> #if QT_VERSION >= 0x050000 # include <QtWidgets> #endif int main(int argc, char *argv[]) { QApplication application(argc, argv); QStandardItemModel model; model.appendRow(QList<QStandardItem*>{ new QStandardItem("AA"), new QStandardItem("AB"), new QStandardItem("AC") }); model.appendRow(QList<QStandardItem*>{ new QStandardItem("BA"), new QStandardItem("BB"), new QStandardItem("BC") }); model.appendRow(QList<QStandardItem*>{ new QStandardItem("CA"), new QStandardItem("CB"), new QStandardItem("CC") }); QTableView view; view.setModel(&model); view.show(); return application.exec(); }