[Interest] QPainter & black inner glow.
Etienne Sandré-Chardonnal
etienne.sandre at m4x.org
Fri Jan 24 08:56:28 CET 2014
Hey... Thanks for the link :)
I was looking for this in QPainter. It should be there instead of being
static!
But maybe QPainter list of member functions is already too large.
Cheers,
Etienne
2014/1/24 Gunnar Sletta <gunnar.sletta at jolla.com>
>
> On 23 Jan 2014, at 13:48, Etienne Sandré-Chardonnal <
> etienne.sandre at m4x.org> wrote:
>
> > By the way, it would be nice to have a kind of QPainter::drawBorderImage
> primitive for doing this!
>
> You mean something like qDrawBorderPixmap?
> http://qt-project.org/doc/qt-5/qdrawutil-h.html#qDrawBorderPixmap
>
> >
> > Cheers,
> >
> > Etienne
> >
> >
> > 2014/1/23 Etienne Sandré-Chardonnal <etienne.sandre at m4x.org>
> > Hi Igor,
> >
> > I do not know if this would suit your needs, but I would do this with a
> pixmap representing the shaded rectangle. To resize it, you need to cut it
> in nine parts (3x3) and stretch only the middle section.
> >
> > Qt does a similar thing with QSS stylesheets and the border-image
> property : http://qt-project.org/doc/qt-4.8/qml-borderimage.html, so if
> you can afford adding a QWidget, you could use a QLabel for your rectangle,
> and apply a stylesheet on it. This avoids recoding the 9-part painting
> operation.
> >
> > Etienne
> >
> >
> > 2014/1/23 Igor Mironchik <igor.mironchik at gmail.com>
> > Hi.
> >
> > Does anybody know how to draw black inner glow for rounded rectangle
> > with QPainter?
> >
> > Any ideas?!
> >
> > Thanks.
> >
> > --
> > Best Regards,
> > Igor Mironchik.
> >
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
> >
> >
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140124/4a7cd4c6/attachment.html>
More information about the Interest
mailing list