Results 1 to 2 of 2

Thread: What is the difference between qreal and type of int?

  1. #1
    Join Date
    Jul 2014
    Posts
    95
    Thanks
    67

    Default What is the difference between qreal and type of int?

    Hello,What is the difference between qreal and type of int? thanks.
    Qt Code:
    1. void addRect(qreal x, qreal y, qreal width, qreal height)
    To copy to clipboard, switch view to plain text mode 
    Last edited by rezas1000; 9th September 2014 at 18:08.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: What is the difference qreal and type of int?

    Have a look at the declaration of qreal.
    It is in qglobal.h
    If you are using QtCreator, just press F2 when the cursor is on the qreal keyword

    Cheers,
    _

    Have a look at the declaration of qreal.
    It is in qglobal.h
    If you are using QtCreator, just press F2 when the cursor is on the qreal keyword

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    rezas1000 (9th September 2014)

Similar Threads

  1. Replies: 0
    Last Post: 10th January 2011, 10:42
  2. Qreal to int
    By shiranraviv in forum Qt Programming
    Replies: 1
    Last Post: 10th November 2009, 11:51
  3. is qreal equivalent to float32?
    By pdoria in forum Qt Programming
    Replies: 9
    Last Post: 22nd July 2009, 23:57
  4. convert a doubole to qreal
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 11th February 2009, 07:15
  5. very small qreal number
    By dreamer in forum Qt Programming
    Replies: 3
    Last Post: 24th June 2008, 12:33

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.