Results 1 to 2 of 2

Thread: Qreal to int

  1. #1
    Join Date
    Oct 2009
    Posts
    25
    Thanks
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question Qreal to int

    Hi,
    I want to convert my QPointF into an int with x and y

    Is it possible?

    thanx

  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: Qreal to int

    take a look at QPointF::toPoint.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Similar Threads

  1. Performance problem with drawing circles
    By kamre in forum Qt Programming
    Replies: 4
    Last Post: 15th September 2009, 05:35
  2. Replies: 2
    Last Post: 16th April 2009, 05:34
  3. convert a doubole to qreal
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2009, 06:15
  4. qreal -> QString conversion
    By MarkoSan in forum Newbie
    Replies: 2
    Last Post: 13th April 2008, 14:37
  5. Converting VC++ qreal to QDate
    By Krish_ng in forum Qt Programming
    Replies: 13
    Last Post: 12th January 2008, 19:23

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.