0

Good afternoon, I want to create a string type :

"{\" events \ ": [" in qt 5, 

but creating

**QString (QLatin1String ("\"% 1 \ "")) .arg (str);** 

does not make me the quote after the { or bar \. Any ideas ?, thanks.

aruisdante
  • 8,875
  • 2
  • 30
  • 37
user3723289
  • 1
  • 3
  • 4

1 Answers1

0

Exactly what result string do you want to create?

A: "{\" events \ ": [" use: '''"{\\" %s \ ": ["''' % 'events'

B: "{" events ": [" use: '''"{" %s ": ["''' % 'events'

C: "{ events : [" use: '''"{ %s : ["''' % 'events'