[Qt-interest] Highlighting button in TableView
Malyushytsky, Alex
alex at wai.com
Fri Feb 19 05:34:49 CET 2010
Have you implemented QItemDelegate::paint method to paint buttons instead of text?
Also you might need to override sizeHint to take into account borders.
Alex
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Helge Fredriksen
Sent: Thursday, February 18, 2010 4:51 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Highlighting button in TableView
Hello!
I have instrumented a QTableView with it's own QItemDelegate to allow some of the columns in the table to become a QPushButton. However, to highligh for the user that the cell actually is a button, the user has to select that cell first. It's not until that particular cell has focus that one actually can see the graphics of the pushbutton. Else it is hidden as an ordinary table cell.
Is is some way for me to avoid this effect?
Regards,
Helge Fredriksen
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
"Please consider our environment before printing this email."
More information about the Qt-interest-old
mailing list