Results 1 to 5 of 5

Thread: Smooth lines in QGraphicsView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jul 2008
    Location
    London, UK
    Posts
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Smooth lines in QGraphicsView

    If you mean the angled line looks "jagged" when drawn at an angle you'll need to turn on "antialiasing" in the QGraphicsView e.g.

    Qt Code:
    1. graphicsView->setRenderHints(QPainter::Antialiasing);
    To copy to clipboard, switch view to plain text mode 

    Matthew.

  2. The following user says thank you to burnttoy for this useful post:

    JaRo999 (27th September 2009)

Similar Threads

  1. Replies: 1
    Last Post: 16th September 2009, 11:23
  2. Replies: 0
    Last Post: 5th March 2009, 06:54
  3. how to draw lines on image using QGraphicsView in Qt4
    By madhavilatha in forum What's New in Qt 4.4
    Replies: 1
    Last Post: 25th July 2008, 00:32
  4. Smooth pixmap transform in QGraphicsView problem
    By spud in forum Qt Programming
    Replies: 1
    Last Post: 24th October 2007, 16:47
  5. How to draw lines with the right width?
    By albanelporto in forum Qt Programming
    Replies: 3
    Last Post: 22nd November 2006, 11:51

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.