Qt-interest Archive, March 2008
Multiple Table View Headers
Message 1 in thread
Hi Everyone,
I am trying to create a Table view that can display different row types
(different number of columns and different column headers) within the
one table. The table view will have each Header view (I'm thinking
QHeaderView at this stage) stacked on top of one another at the top of
the Table view. I would like each row that is of a particular row type
to be able to have columns resized when the appropriate header column is
resized. I would also like to be able to hide and show each header at
the request of the operator, maybe from a pop-up menu.
Can anyone please guide me as to the best way to get multiple header
views to exist on the same table view? Also, any assistance regarding
how to implement a Table view like the one I described would be much
appreciated.
Thanks in advance.
Duncan Browne
Senior Programmer
Pebble Beach Systems
Tel: +44 1932 333790
Fax: +44 1932 333791
E-mail: duncan.browne@xxxxxxxxx <mailto:simon.foskett@xxxxxxxxx>
www.pebble.tv <http://www.pebble.tv/>
Registered in England and Wales No 3944834 VAT No 733 725 433
This e-mail and any attachment is confidential and is intended solely
for the use of the individual or entity to whom it is addressed. If you
are not the intended recipient, you are hereby notified that any use or
dissemination of this communication is strictly prohibited. If you have
received this e-mail in error please notify Pebble Beach Systems
immediately at postmaster@xxxxxxxxx <mailto:postmaster@.pebble.tv> then
delete this e-mail. Any views or opinions expressed within this e-mail
are solely those of the sender, and do not necessarily represent those
of Pebble Beach Systems.
Message 2 in thread
On onsdag den 12. Marts 2008, Duncan Browne wrote:
> I am trying to create a Table view that can display different row types
> (different number of columns and different column headers) within the
> one table. The table view will have each Header view (I'm thinking
> QHeaderView at this stage) stacked on top of one another at the top of
> the Table view. I would like each row that is of a particular row type
> to be able to have columns resized when the appropriate header column is
> resized. I would also like to be able to hide and show each header at
> the request of the operator, maybe from a pop-up menu.
I sincerely doubt that you will be able to implement this using the standard
QTableView. It's definitely not designed for something like this.
> Can anyone please guide me as to the best way to get multiple header
> views to exist on the same table view? Also, any assistance regarding
> how to implement a Table view like the one I described would be much
> appreciated.
You're in for a very bumpy ride. It's going to be a tough job that will take
you a very long time. I don't see any simple help I can offer on this, and I
would probably be very tempted to write my own table replacement from scratch
if I had to do this job.
The simplest way would be to change your requirements. Or perhaps the ICS
table could do this. Take a look at it here:
http://www.ics.com/products/qt/qtgraphcharttable/qicstable/index.html
Sincerely,
Bo Thorsen.
>
>
> Thanks in advance.
>
>
>
>
>
>
>
> Duncan Browne
>
> Senior Programmer
>
> Pebble Beach Systems
>
> Tel: +44 1932 333790
>
> Fax: +44 1932 333791
>
> E-mail: duncan.browne@xxxxxxxxx <mailto:simon.foskett@xxxxxxxxx>
>
> www.pebble.tv <http://www.pebble.tv/>
>
>
>
> Registered in England and Wales No 3944834 VAT No 733 725 433
>
> This e-mail and any attachment is confidential and is intended solely
> for the use of the individual or entity to whom it is addressed. If you
> are not the intended recipient, you are hereby notified that any use or
> dissemination of this communication is strictly prohibited. If you have
> received this e-mail in error please notify Pebble Beach Systems
> immediately at postmaster@xxxxxxxxx <mailto:postmaster@.pebble.tv> then
> delete this e-mail. Any views or opinions expressed within this e-mail
> are solely those of the sender, and do not necessarily represent those
> of Pebble Beach Systems.
--
[ signature omitted ]