python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to force the compiler to use the template overload of QString arg() method?
QString's arg() method has many overloads. Two of them are:
QString arg(int a, int fieldWidth = 0, int base = 10, QChar fillChar = QLatin1Char(' ')) const;
QString arg(Args &&... args) const;
...
Jackoo
Votes: 0
Answers: 0
QT String to short int - Hex Value
I want to convert QString to short int. For eg,
Input:
QString str = "0x0001";
Output:
short int num = 0x0001;
I have tried toShort() method of QString but it converts "0x0024" to ...
Akshay Shelke
Votes: 0
Answers: 1
Splitting QString on spaces and keeping the space in QList - best or 'canonical' way
As in the title, I would like to ask what is the best way to split a QString on spaces and - where relevant - keep the spaces as parts of the resulting QList elements. I'm interested in the most effic...
Bart M
Votes: 0
Answers: 1
General protection error, when i convert QString to Char
I try to convert QString to const *char, it generate General Protection fault.
I could't understand about that.
dmesg
code that generate General Protection fault
When I checked with gdb, segment fault...
ming
Votes: 0
Answers: 0