Results 1 to 2 of 2

Thread: QPolygonF preview for a custom QGraphicsItem

  1. #1
    Join Date
    Jun 2010
    Location
    Italy
    Posts
    10
    Qt products
    Platforms
    Unix/X11 Windows

    Default QPolygonF preview for a custom QGraphicsItem

    Hi All,
    I'm trying to create a painter.drawPolyline passing a QpoligonF as argument.

    I Try to make a preview of the polyline object .

    I got a strange beavior..

    It seems that the point sequence that the painter use is different from the one I give

    This is my array:
    point PyQt4.QtCore.QPointF(92.984541726000003, -5.6568542494900003)
    point PyQt4.QtCore.QPointF(95.105862069599993, -92.277434944800007)
    point PyQt4.QtCore.QPointF(2.1213203435599999, -91.923881554299996)
    point PyQt4.QtCore.QPointF(90.863221382471338, 21.213203435596419) <- this is the mouse move

    this is the sequence that the qtpainter render on drawPolyline (the list cam from what i see on the screen)

    point PyQt4.QtCore.QPointF(95.105862069599993, -92.277434944800007)
    point PyQt4.QtCore.QPointF(90.863221382471338, 21.213203435596419) <- this is the mouse move
    point PyQt4.QtCore.QPointF(2.1213203435599999, -91.923881554299996)

    Any help ?

    Regards,
    Matteo

  2. #2
    Join Date
    Jun 2010
    Location
    Italy
    Posts
    10
    Qt products
    Platforms
    Unix/X11 Windows

    Default Re: QPolygonF preview for a custom QGraphicsItem

    Solved it was a my programming mistakes ..

Similar Threads

  1. Error in QPolygonF::subtracted
    By lni in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2010, 01:27
  2. Custom QGraphicsItem
    By Lis in forum Qt Programming
    Replies: 1
    Last Post: 12th April 2010, 03:47
  3. Sorting QPolygonF
    By giusepped in forum Qt Programming
    Replies: 3
    Last Post: 7th January 2009, 08:34
  4. Replies: 4
    Last Post: 24th March 2006, 22:50
  5. Replies: 12
    Last Post: 15th February 2006, 10:46

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.