[Qt-interest] display a line in a cell of QTableWidget
Malyushytsky, Alex
alex at wai.com
Thu Apr 9 01:31:02 CEST 2009
Easiest probably is:
Since you can set any widget to be displayed in the QTableWidget with:
void setCellWidget ( int row, int column, QWidget * widget )
You can displae for example QLabel with a pixmap (if it is suitable for you). Disadvantages - line size will not scale with column resizing.
If you want better approach you can create a custom widget which will draw the line and use it instead.
Regards,
Alex
________________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of ri at eeda.denso.co.jp
Sent: Wednesday, April 08, 2009 1:54 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] display a line in a cell of QTableWidget
hi list
Is it possible to display a line inside a cell of a QTableWidget, while
being able to set its color and width?
Please share your idea about this.
Thanks in advance!
Mizuki Shiniji
---------------------------------------------------------------------------------------------------
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