Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Using Switch for QChar valuse

Using Switch for QChar valuse

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 3.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by tomy
    #1

    Hi guys,

    Now I need to compare some chars using switch . how to do it please?

    QChar ch;
     switch(ch)
    {
        case 'c' : ...
    ....
    }
    
    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2
      switch(ch.unicode())
      {
          case 'c' : ...
          ...
      }
      
      tomyT 1 Reply Last reply
      3
      • Chris KawaC Chris Kawa
        switch(ch.unicode())
        {
            case 'c' : ...
            ...
        }
        
        tomyT Offline
        tomyT Offline
        tomy
        wrote on last edited by
        #3

        @Chris-Kawa
        Thank you very much. I appreciate it.
        How long have you been programming please?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved