[Qt-interest] TreeView, StandarditemModel

Raja Rokkam rokkamraja at gmail.com
Thu Jul 29 16:57:25 CEST 2010


Hi Andre,

        Thanks for the reply. I got it working using the QTableView and
removing all the unnecessary things like headers, etc.

-Raja.

On Wed, Jul 28, 2010 at 11:59 PM, Andre Somers <andre at familiesomers.nl>wrote:

> Op 28-7-2010 5:34, Raja Rokkam schreef:
> > Hi All,
> >
> > Please find attached the two images.
> >
> > 1.) IMG1.jpg has 2 questions:
> >
> > a.) How to increase a row's height without affecting the Text font size.
> > b.) How to right-align in just a particular column so that image moves
> > to the right end ?
> >
> >
> > 2.) IMG2.jpg has 1 question:
> >
> > a.) How to increase the column width so that the background color
> > spans the entire treeview width ?
> >
> > I tried looking into the documentation and all I could find is
> > Indentation which didnt help. If there are no methods as such, will
> > inheriting the class remains the option ?
> >
> > Please let me know of any other solutions.
> There are other options. Delegates provide one, though I think it is a
> pretty hard way to get it done. A proxy model is also a viable way to
> add this kind of information. You can set the nessesairy data roles from
> your proxy model.
> Unfortunately, my RichTextDelegate and StyleSheetDelegate are not quite
> ready yet. They'd make it trivial (though it may not be the fastest way
> to do it).
>
> André
>
>
> André
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100729/e2bf2cde/attachment-0001.html 


More information about the Qt-interest-old mailing list