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. qstring replace
Forum Updated to NodeBB v4.3 + New Features

qstring replace

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 276 Views 1 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
    s002wjh
    wrote on last edited by
    #1

    how to find and remove " within qstring?

    I try test.replace(""",""); it output an error, must thinking the extra " is the end of quote.

    K 1 Reply Last reply
    0
    • S s002wjh

      how to find and remove " within qstring?

      I try test.replace(""",""); it output an error, must thinking the extra " is the end of quote.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @s002wjh

      Try test.replace("\"","");
      or try test.replace("""","");

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        or use QString::remove(""")

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1

        • Login

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