Results 1 to 4 of 4

Thread: How to return QString from function

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default How to return QString from function

    Hi, I want to return QString from this function:
    Qt Code:
    1. QString MainWindow::postLogin(QNetworkReply *reply)
    2. {
    3. QString token;
    4.  
    5. (...)
    6.  
    7. return token;
    8. }
    To copy to clipboard, switch view to plain text mode 

    Is this good way? And how can i call the function and use this QString value in my main program?

    Thanks
    Last edited by Rondle; 9th November 2012 at 18:24.

Similar Threads

  1. Carriage Return in QString
    By incapacitant in forum Newbie
    Replies: 7
    Last Post: 2nd December 2010, 09:18
  2. Replies: 4
    Last Post: 2nd April 2010, 10:04
  3. Replies: 4
    Last Post: 1st February 2010, 14:21
  4. Function return
    By waynew in forum Qt Programming
    Replies: 1
    Last Post: 12th November 2009, 00:52

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.