Results 1 to 2 of 2

Thread: QString == Operator

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Dec 2006
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanked 6 Times in 5 Posts

    Default Re: QString == Operator

    According to the documentation of QValueList, the "at" method returns an iterator to the item at a given index. So:
    Qt Code:
    1. if( *(confList.at( 0 )) == QString( "LAST_OPEN_DIR" ) )
    To copy to clipboard, switch view to plain text mode 
    should be correct.

  2. The following user says thank you to ggrinder for this useful post:

    ToddAtWSU (3rd January 2007)

Similar Threads

  1. QString problem
    By vermarajeev in forum Qt Programming
    Replies: 9
    Last Post: 26th October 2006, 19:10
  2. Replies: 2
    Last Post: 12th October 2006, 09:17
  3. QSqlQueryModel + set Write
    By raphaelf in forum Qt Programming
    Replies: 7
    Last Post: 5th June 2006, 08:55
  4. Converting QString to unsigned char
    By salston in forum Qt Programming
    Replies: 3
    Last Post: 24th April 2006, 22:10
  5. dialog box
    By Bahar in forum Qt Programming
    Replies: 3
    Last Post: 31st January 2006, 14: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
  •  
Qt is a trademark of The Qt Company.