Results 1 to 9 of 9

Thread: Vector graphics in Qt4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2013
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Vector graphics in Qt4

    Hi @ all!

    I searched for a while now, but couldn´t find an answer to my problem.

    I want to use vector graphics in a GUI. At first I tried to use QImage, but if I use the scaled() function my picture looks really bad..
    I read now that there is a SVG format for vector graphics or (and?) I could use QPainter but I cannot see the connection.

    Hopefully you all could give me a hint at using vector graphics

    For the GUI I use a QGraphicsView with Scene where I put added some QGraphicsObjects classes I wrote myself.
    I want to resize, transform, overlap different images to show some infos on the screen (like rotate an arrow over another background image).
    The vector graphics are in a png format.

    I hope it´s understandable what I mean (I am not so good in explaining myself, so sorry beforehand )

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Vector graphics in Qt4

    Quote Originally Posted by Abayo View Post
    The vector graphics are in a png format.
    No, they are not. PNG is a raster format, not a vector one.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Copying vector of pointers to another vector
    By Momergil in forum Newbie
    Replies: 12
    Last Post: 24th September 2011, 22:09
  2. Replies: 2
    Last Post: 24th July 2011, 23:58
  3. Replies: 1
    Last Post: 24th January 2011, 13:57
  4. Painting vector graphics...
    By Muffin in forum Newbie
    Replies: 2
    Last Post: 5th November 2009, 08:54
  5. big vector graphics
    By Colx007 in forum Qt Programming
    Replies: 5
    Last Post: 22nd January 2008, 13:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.