Results 1 to 3 of 3

Thread: some warning meaning

  1. #1
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default some warning meaning

    Hi to all!

    What does gcc's warning mean:
    Qt Code:
    1. warning: passing `qreal' for converting 4 of `void CMerchandizeOrder::setDisplayString(qint16, QString, qreal, qint16, qreal)'
    To copy to clipboard, switch view to plain text mode 

    I've googled it in general form (without particular method name) and I've found nothing that could help me get what is wrong.
    Qt 5.3 Opensource & Creator 3.1.2

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    551
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: some warning meaning

    Param 4 is an integer but you pass a real. The real is simply truncated to the nearest lower integer iirc which isn't maybe what you want.

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

    MarkoSan (28th May 2008)

  4. #3
    Join Date
    Jan 2006
    Location
    Ljubljana
    Posts
    687
    Thanks
    111
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: some warning meaning

    Quote Originally Posted by ChristianEhrlicher View Post
    Param 4 is an integer but you pass a real. The real is simply truncated to the nearest lower integer iirc which isn't maybe what you want.
    Well it is definetly what do I NOT want. Thanks man!
    Qt 5.3 Opensource & Creator 3.1.2

Similar Threads

  1. Visual Studio 2005 Express
    By Muzz in forum Installation and Deployment
    Replies: 22
    Last Post: 6th November 2008, 06:21
  2. Crash handler on Win32
    By niko in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2007, 19:41
  3. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 14:18
  4. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  5. warning message on compile not understood
    By impeteperry in forum Qt Programming
    Replies: 13
    Last Post: 23rd January 2006, 23:36

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.