Results 1 to 7 of 7

Thread: QString function by value

Threaded View

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

    Post QString function by value

    Newbie; the function below returns nothing(empty) but if I assign art="abc" returns abc what is wrong; please help.
    Thanks
    hmarani
    Qt Code:
    1. QString Dialog::forsuly()
    2. {
    3.  
    4. model.setQuery("SELECT * FROM art");
    5. QString artn = model.record(4).value("artln").toString();
    6. return artn
    7. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by Lykurg; 23rd November 2010 at 21:12. Reason: missing [code] tags

Similar Threads

  1. call function as Qstring
    By jcr in forum Qt Programming
    Replies: 1
    Last Post: 30th May 2009, 01:35
  2. QString - no member function called 'find'
    By pitterb in forum Newbie
    Replies: 1
    Last Post: 13th January 2009, 11:31
  3. Method/Function With QString Arg
    By seanmu13 in forum Qt Programming
    Replies: 2
    Last Post: 7th July 2007, 09:43
  4. QString static callback function from CURL
    By tpf80 in forum Qt Programming
    Replies: 12
    Last Post: 16th May 2007, 20:47
  5. Using QString in C function ...
    By Godlike in forum Newbie
    Replies: 10
    Last Post: 8th April 2006, 17:01

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.