Results 1 to 4 of 4

Thread: String Comparision

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: String Comparision

    Both conditions are true for the given input, so it is quite clear that the last one will be displayed. Switch the order of both conditional blocks or change second one to "else if...".

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

    parulkalra14 (29th January 2014)

Similar Threads

  1. Parenthesis Comparision with Enter key Event
    By parulkalra14 in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2014, 10:39
  2. QString comparision with some different char
    By ^NyAw^ in forum Qt Programming
    Replies: 5
    Last Post: 18th May 2013, 22:26
  3. How to avoid type comparision using polymorphism
    By dancas2 in forum General Programming
    Replies: 8
    Last Post: 8th May 2012, 20:56
  4. std:string how to change into system:string?
    By yunpeng880 in forum Qt Programming
    Replies: 1
    Last Post: 14th April 2009, 08:51
  5. Int to String - manipulating string
    By mickey in forum General Programming
    Replies: 6
    Last Post: 5th November 2007, 20:11

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.