Going through a bunch of code, looking to improve it. I came across this bit: if (c == '<' || c == '>') { pattern.append("\\b"); } else i ...
Going through a bunch of code, looking to improve it. I came across this bit: if (c == '<' || c == '>') { pattern.append("\\b"); } else i ...
I have two buffers (example sizes): Assuming 'c' contains multibyte character string (UTF-8). I need to convert it to QChar sequence and place it i ...
Background: I am making a hash that will allow you to lookup the description you see below by feeding it a QString containing its character. I got ...
I got an error when using QValueAxis in QtCharts: ASSERT: "width > 0.0" in file painting\qrasterizer.cpp, line 761 This happens when the QBa ...
I have a custom implementation of QChartView where I can zoom. (Class "ChartView" from this example) In there I have a mousePressEvent. Now I wanted ...
How to get the digits value elegantly? does not look that good. Neither does converting to QString since creating a QString object and start parsi ...
I have a QString of 1500 QChar which I want to convert to an array of uint32_t. I am reading each element in for loop and trying to save each QChar of ...
I have this code which works: Where bp is a QByteArray::const_pointer, and ut is the maximum expected length of the UTF-8 encoded Unicode code-poin ...
The intention here is to manipulate 8 bits by ORing or ANDing them, and then storing them in a string. Then I would like to read the output as dec ...
I want to get the Latin1 code for multiply sign ×, but when I check the value inside the QChar it has -41'×'. My code: When I debug, in the second ...
I'm working on a QT project where a user inputs their full name and the program generates a random 5 character password based off of the letters in th ...
how can I convert my QString composed of just one unicode to QChar and char? I have this character cedilla. http://graphemica.com/%C3%A7 I don't hav ...
I want to detect if the user has inputted a non-ASCII (otherwise incorrectly known as Unicode) character (for example, り) in a file save dialog box. A ...
I need to get the ASCII code from a QChar. In Qt 5.2 QChar::ToAscii has been removed. Here is my code. How can I get the ASCII code? ...
I need to pass a QChar to a function that expects a wchar_t: Trying to just pass the QChar fails with an error: ...
How get int code of qchar in this table http://www.ascii-codes.com/cp866.html ? Here is my code: getCp866Code('ж') // returns -90, not 166 ...
In C++ there is a way to cast a char to int and get the ascii value in return. Is there such a way to do the same with a qchar? Since unicode supports ...
I'm building a Qt Gui application for monitoring data from serial port.I'm using qextserialport library. Here's the problem I ran into. readLine me ...
I want to convert QStrings into filenames. Since I'd like the filename to look clean, I want to replace all non-letters and non-numbers by an undersco ...
I have an application that is supposed to deal with all kinds of characters and at some point display information about them. I use Qt and its inheren ...