21 fprintf(stderr,
"%s at %d\n",
error.errorString().toUtf8().constData(),
error.offset);
36 fprintf(stderr,
"Error opening stdout for writing\n");
48 if (jsonFiles.isEmpty() && !skipStdIn) {
51 fprintf(stderr,
"Error opening stdin for reading\n");
56 fprintf(stderr,
"Error parsing data from stdin\n");
62 jsonFilesSorted.sort();
63 for (
const QString &jsonFile : std::as_const(jsonFilesSorted)) {
66 fprintf(stderr,
"Error opening %s for reading\n",
qPrintable(jsonFile));
71 fprintf(stderr,
"Error parsing %s\n",
qPrintable(jsonFile));
IOBluetoothDevice * device
\inmodule QtCore \reentrant
\inmodule QtCore\reentrant
void append(const QJsonValue &value)
Inserts value at the end of the array.
\inmodule QtCore\reentrant
QByteArray toJson(JsonFormat format=Indented) const
QJsonObject object() const
Returns the QJsonObject contained in the document.
static QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error=nullptr)
Parses json as a UTF-8 encoded JSON document, and creates a QJsonDocument from it.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
int collectJson(const QStringList &jsonFiles, const QString &outputFile, bool skipStdIn)
static bool readFromDevice(QIODevice *device, QJsonArray *allMetaObjects)
DBusConnection const char DBusError * error
static QString outputFile
#define qPrintable(string)
QT_BEGIN_NAMESPACE typedef uchar * output
static Q_CORE_EXPORT void setDeterministicGlobalSeed()
\threadsafe
\inmodule QtCore\reentrant