[Kde-graphics-devel] KSnapshot marker and pen function

Márton Miklós martonmiklosqdev at gmail.com
Wed Oct 22 06:36:08 UTC 2014


Yes I can do that, but it takes time -> decreases my productivity, and I
like copy pasting the screenshots directly to my e-mail application. I do
not want to have complex drawing functions just a pen, a marker, place text
and a rubber tool.

2014-10-22 0:53 GMT+02:00 Albert Astals Cid <aacid at kde.org>:

> El Dissabte, 18 d'octubre de 2014, a les 15:12:01, Márton Miklós va
> escriure:
> > Hello all,
> >
> > The Windows 7 snipping tool has a feature what I like very much: it
> > allows drawing to the screenshot with a pen and a marker.
> > I would like to implement the same functionality in KSnapshot.
>
> Why not just export it to kolourpaint or any other painting program and do
> it
> there?
>
> I'm not the maitainer but it seems to me a bit out of scope to have drawing
> inside ksnapshot.
>
> Cheers,
>   Albert
>
> >
> > My first ide was changing the label based preview to QGraphicsView based
> > one, and creating QGraphicsItem based objects for storing the user's
> > drawings.
> >
> > *What do you think about this approach?*
> >
> > Currently I am having a problem with the anti-aliasing:
> >
> >
> >
> > The bottom widget is the current label based one and the upper one is a
> > QGraphicsView displaying the same QPixmap through a QGraphicsPixmapItem.
> >
> > I have set setRenderHint(QPainter::HighQualityAntialiasing, true); and
> > setRenderHint(QPainter::SmoothPixmapTransform, true); on the view and
> > setTransformationMode(Qt::SmoothTransformation); on the QPixmapItem but
> > it did not helped.
> >
> > *Do you have any idea how could it be worka**rounded?
> >
> > *Thank you for your answers in advance!*
> > *
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-graphics-devel/attachments/20141022/80cb07d6/attachment.html>


More information about the Kde-graphics-devel mailing list