Results 1 to 2 of 2

Thread: Function with parameter but empty return(return;) in Qt 4.8.4 and Qt 4.7.4

  1. #1
    Join Date
    Nov 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Function with parameter but empty return(return;) in Qt 4.8.4 and Qt 4.7.4

    Hi guys!

    We encountered error in compiling our code in Qt 4.8.4 and Qt 4.7.4.

    This portion of our code gives error in 4.8.4 but works good in 4.7.4:

    .cpp
    void Functiontry::functionparamnoreturn(int paramtry)
    {
    return;
    }


    Can someone help me solving this issue and also explain why is this happening.


    Thanks in Advance Guys!

    Happy New Year!

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Function with parameter but empty return(return;) in Qt 4.8.4 and Qt 4.7.4

    Can you post the error?
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. How to return QString from function
    By Rondle in forum Newbie
    Replies: 3
    Last Post: 21st November 2012, 18:51
  2. Replies: 6
    Last Post: 22nd May 2011, 09:52
  3. Replies: 6
    Last Post: 23rd June 2010, 14:48
  4. Replies: 4
    Last Post: 2nd April 2010, 10:04
  5. Function return
    By waynew in forum Qt Programming
    Replies: 1
    Last Post: 12th November 2009, 00:52

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.