[Self-Solved]QTableView selected row color
Hi, guys
I create a delegate for checkbox, and display this checkBox in Qtableview. everything is ok, but, when I selected one row in table, there is no selected color in that specific columns that checkbox are displayed. would you guys please give me some ideas on this issue, thanks a lot.
- {
- Q_OBJECT
- public:
- virtual bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option,
- virtual void drawFocus(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect) const;
- };
1 reply
You must log in to post a reply. Not a member yet? Register here!
