PDA

View Full Version : QTable Widget



csvivek
8th May 2008, 08:18
I want to create a table widget without a row header .
The Row Header i meant here is the one that comes to the left of the table.
i want only columns...

now it is like this
A B C D E F
Q 1 2 2 2 2 1
P 1 2 2 2 2 1
I 1 2 2 2 2 1
J 1 2 2 2 2 1
K 1 2 2 2 2 1
L 1 2 2 2 2 1

When i create a table of the above format i don't want that Q,P,I,J,K,L to come along with the row side. It comes as Grey header kind. How to avoid this.

I want some thing like this..........
A B C D E F
1 2 2 2 2 1
1 2 2 2 2 1
1 2 2 2 2 1
1 2 2 2 2 1
1 2 2 2 2 1
1 2 2 2 2 1

is it possible with table widget? please enlighten me on this...

estanisgeyer
8th May 2008, 13:26
From where are you taking this data? From a database? I see it is easier you first organize their data and then put in a TableWidget

Marcelo E. Geyer

jpn
12th May 2008, 13:37
tableWidget->verticalHeader()->hide();