#include <qglobal.h>
#include "qsystemerror_p.h"
#include <windows.h>
Go to the source code of this file.
◆ standardLibraryErrorString()
static QString standardLibraryErrorString |
( |
int |
errorCode | ) |
|
|
static |
Definition at line 104 of file qsystemerror.cpp.
Referenced by QSystemError::toString().
127 #if !defined(QT_NO_THREAD) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && _POSIX_VERSION >= 200112L && !defined(Q_OS_INTEGRITY) && !defined(Q_OS_QNX) 129 ret = fromstrerror_helper(strerror_r(errorCode, buf.data(), buf.size()), buf);
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
static QString windowsErrorString(int errorCode)
The QByteArray class provides an array of bytes.
#define QT_TRANSLATE_NOOP(scope, x)
Marks the string literal sourceText for dynamic translation in the given context; i...
The QString class provides a Unicode character string.
QString trimmed() const Q_REQUIRED_RESULT
Returns a string that has whitespace removed from the start and the end.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
◆ windowsErrorString()
static QString windowsErrorString |
( |
int |
errorCode | ) |
|
|
static |
Definition at line 84 of file qsystemerror.cpp.
Referenced by standardLibraryErrorString(), and QSystemError::toString().
88 FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,
91 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
96 LocalFree((HLOCAL)
string);
98 if (ret.
isEmpty() && errorCode == ERROR_MOD_NOT_FOUND)
static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
The QString class provides a Unicode character string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...