Hi Martin,
Thanks! That did the trick :)
Cheers,
Dylan
> Original Message
> Subject: RE: [SailfishDevel] QT String issue
> Local Time: 12 September 2017 2:39 PM
> UTC Time: 12 September 2017 12:39
> From: martin.kam...@jolla.com
> To: Dylan Van As
uot;) or better data.remove('"').
BR,
Martin
From: Devel [devel-boun...@lists.sailfishos.org] on behalf of Dylan Van Assche
via Devel [devel@lists.sailfishos.org]
Sent: Tuesday, September 12, 2017 2:23 PM
To: Sailfish OS Developers mailing list
Subject: Re: [SailfishDeve
l the same for some reason.
I think I do something still wrong :(
Cheers,
Dylan
> Original Message ----
> Subject: Re: [SailfishDevel] QT String issue
> Local Time: 12 September 2017 2:13 PM
> UTC Time: 12 September 2017 12:13
> From: dylan.van.ass...@protonmail.com
&g
Hi Dmitriy,
Thanks for the information! I just started to learn QT C++ :)
Cheers,
Dylan
> Original Message
> Subject: Re: [SailfishDevel] QT String issue
> Local Time: 12 September 2017 12:41 PM
> UTC Time: 12 September 2017 10:41
> From: dpur...@gmail.com
Hi Dylan,
trimmed() removes whitespaces only. You need to replace \" with an empty
string and "escape" both \ and ". You need escaping because this is how
string literals in C/C++ work. Try calling str.replace("\\\"", ""), where
str an object of QString.
Also note that trimmed() is a const method
Hi,
I'm reading the sfos-release and the hw-release file in /etc from C++ but for
some lines I get this in my strings as output:
"\"Intex Aqua Fish\""
I tried trimmed() and remove() but I can't figure out how to clean it
correctly. The \" characters are annoying.
Kind regards,
Dylan Van Assch