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. How to remove a ' from a string Qt 6.01
Forum Updated to NodeBB v4.3 + New Features

How to remove a ' from a string Qt 6.01

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 305 Views 3 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.
  • S Offline
    S Offline
    shathcock
    wrote on last edited by
    #1

    Quick question that I am sure someone knows the answer to. I am trying to remove the ' from the word can't in a qstring. I have tried everything from just a regular remove and a replace to qregularexpression which I am sure I was probably doing incorrectly. Any help would be greatly appreciated.

    N 1 Reply Last reply
    0
    • S shathcock

      Quick question that I am sure someone knows the answer to. I am trying to remove the ' from the word can't in a qstring. I have tried everything from just a regular remove and a replace to qregularexpression which I am sure I was probably doing incorrectly. Any help would be greatly appreciated.

      N Offline
      N Offline
      nanor
      wrote on last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Can you show what you tried ?
        Where does the text come from ? The char you are trying to replace might not be the one you think it is.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • S Offline
          S Offline
          shathcock
          wrote on last edited by
          #4

          problem it was actually a right quote not a apostrophe and the remove("") function works beautifully.

          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