qstring
QDateTime::fromString not accepting my QString?
I have a .txt file which is filled with lines like this below: 2011-03-03 03.33.13.222 42000InformationBUSINESS ...etc blabla[详细]
2023-04-09 11:11 分类:问答How to specify a unicode character using QString?
How can I specify a unicode character by code (such as \"4FF0\") using QString? I tried QString s(\"\\u4FF0\"); but it only outputs a question mark. Any idea how to do this?[详细]
2023-04-08 21:04 分类:问答Qt. get part of QString
I want to get QString from another QString, when I know necessary indexes. For example: Main string: \"This is a string\".[详细]
2023-04-08 02:39 分类:问答Is there a Qt function to (un-)escape (at least) the ASCII formatting characters (d 0..31) in a QString?
I don\'t like reinventing the wheel and this seemed like a pretty basic function.The same concept as the开发者_运维问答se two questions except specifically for QStrings?QRegExp has an escape function[详细]
2023-04-04 17:12 分类:问答Format a Number to a specific QString format
I have a question about formatting a decimal number to a certain QString format.Basically, I have an input box in my program that can take any values.I want it to translate the value in this box to th[详细]
2023-03-31 19:01 分类:问答Concatenating two QStrings with an integer
I want to do something like this in C++ using Qt: int i = 5; QString direc开发者_StackOverflowtory = \":/karim/pic\" + i + \".jpg\";[详细]
2023-03-27 05:50 分类:问答Is is possible to pass a QString to a QMessageBox?
I\'m working on QT application where the user will enter their information into several QLineEdits. They then will click son a Submit button. I would like a QMessageBox to appear asking if they would[详细]
2023-03-17 02:48 分类:问答convert json array of hashes to Qt list of QHashes
I have a QString of JSON-encoded dictionaries.Is there a simple way to convert them to a list of QHashes?I\'ve looked at this post Best JSON parser for Qt?, but haven\'t been able to ge开发者_Go百科t[详细]
2023-03-14 22:00 分类:问答Get plain text from QString with HTML tags
I have QString wi开发者_开发技巧th html tags. Why can i get plain text from this string?str.remove(QRegExp(\"<[^>]*>\"));You need to strip off the HTML tags from the string. See this post for insta[详细]
2023-03-06 08:05 分类:问答How can I partition a QByteArray efficiently?
I want to partition a QByteArray message efficiently, so this function I implemented take the Bytes, the part I want to extract, and toEnd flag which tells if I want to extract part1 till the end of t[详细]
2023-03-05 15:36 分类:问答