Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, February 2007
RE: How to set the alignment of the text in a cell in qtable


Message 1 in thread

Take a look at the QTable documentation: 'If you want to draw custom
cell content, for example right-aligned text, you must either
reimplement paintCell(), or subclass QTableItem and reimplement
QTableItem::paint() to do the custom drawing'.

Sam Dutton 


 





SAM DUTTON
SENIOR SITE DEVELOPER

200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F 
E SAM.DUTTON@xxxxxxxxx
WWW.ITN.CO.UK

-----Original Message-----

From: Srikanth Bemineni [mailto:sbemineni@xxxxxxxxxxxx] 
Sent: Monday 05 February 2007 17:31
To: qt-interest@xxxxxxxxxxxxx
Subject: How to set the alignment of the text in a cell in qtable

Hi,

Does anybody know how to set the alignment of the text in a cell in
QTable.By default the character text will be aligned right and numeric
values will aligned left.

Thanks in advance.

--
 [ signature omitted ] 

Message 2 in thread

Hi,

Does anybody know how to set the alignment of the text in a cell in 
QTable.By default the character text will be aligned right and numeric 
values will aligned left.

Thanks in advance.

-- 
 [ signature omitted ]