[Qt-interest] macintosh look and feel for QTreeWidget

Yuvaraj R yuvaraj at ongobiz.com
Thu Jul 30 12:30:49 CEST 2009


You are correct ,i have use style sheet only..

I have been using


 QTreeWidget::branch:has-siblings:!adjoins-item {

 border-image: url(vline.png) 0;

}

 QTreeWidget::branch:has-siblings:adjoins-item {

 border-image: url(branch-more.png) 0;

}

 QTreeWidget::branch:!has-children:!has-siblings:adjoins-item {

 border-image: url(branch-end.png) 0;

}

 QTreeWidget::branch:has-children:!has-siblings:closed,

QTreeWidget::branch:closed:has-children:has-siblings {

 border-image: none;

image: url(:/image/Icons/right_arrow.PNG);

 }

 QTreeWidget::branch:open:has-children:!has-siblings,

QTreeWidget::branch:open:has-children:has-siblings {

 border-image: none;

image: url(:/image/Icons/down_arrow.PNG);

}


Thanks


Yuvaraj R

On Thu, Jul 30, 2009 at 3:51 PM, Andreas Pakulat <apaku at gmx.de> wrote:

> On 30.07.09 13:00:50, Yuvaraj R wrote:
> > Hi Thanks
> >
> >
> > My problem is in TreeWidget want to hide the line between toplevel item
> and
> > child items
> >
> > Look like Mac os style..
> >
> > how do i erase that line..
>
> Thiago already explained that, use a style that doesn't draw that line.
> Wether the line is drawn or not depends on the style you use, so you need
> to use a style that doesn't draw it.
>
> Andreas
>
> --
> You will be traveling and coming into a fortune.
> _______________________________________________
> 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/20090730/eaa79c06/attachment.html 


More information about the Qt-interest-old mailing list