How to copy N characters from strings to QString without using loops?
QString
auto qs = QString::fromLatin1(cstr, N);
const char* cStr = "Hello world!"; int N = 5; QString qStr(QLatin1String(cStr , N));
Source: https://ru.stackoverflow.com/questions/485029/More articles:Is there a camera inside the camera?Microsoft removed the distribution of Visual Basic 6.0? [closed]How to make kendoMultiSelect select all items from a data source?Work in Linux on AWS EC2, no apt-getAfter logging in to Facebook, the popup window does not disappear ios9 SwiftAccess token updateHow to make the button in the foreground?Manufacturers disappeared in the OpenCart admin paneldelphi sqlite like case-insensitive searchHow to make a selector without an indexAll Articles