Results 1 to 2 of 2

Thread: QPoint Limitation

  1. #1
    Join Date
    Feb 2008
    Posts
    19
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default QPoint Limitation

    QPoint does not support any floating point values due to which it restricts to a large extent.
    For instance the division operation and other mathematical operations do not result in accurate results.This is hindering me from painting lines accurately.

    Please do suggest some way to use Qpoints, where I can use mathematical equations like y=mx+c and
    m =y2-y1/x2-x2 to draw on the canvas.



    Thank You,

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QPoint Limitation

    Did you look at QPointF?
    Last edited by jpn; 5th August 2008 at 12:00. Reason: Fixed [qtclass] tags

Similar Threads

  1. How find QPoint from a QListWidgetItem inside viewport?
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 12th April 2008, 12:28
  2. QTableView paints too much
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2006, 18:42
  3. Limitation when adding more than 256 items to a model
    By darkadept in forum Qt Programming
    Replies: 5
    Last Post: 25th May 2006, 15:26
  4. Confusion with QPoint
    By therealjag in forum Qt Programming
    Replies: 9
    Last Post: 14th February 2006, 17:31

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.