by Anonymous » 09 Mar 2025, 11:13
Ich bin es gewohnt, die QStringList ()
writer.writeAttributes(QXmlStreamAttributes()
Es schlägt mit Fehler fehl: < /p>
C:\Workspace\untitled5\mainwindow.cpp:18: error: C2664: 'QXmlStreamWriter::writeAttributes' : cannot convert parameter 1 from 'QVector' to 'const QXmlStreamAttributes &'
with
[
T=QXmlStreamAttribute
]
Reason: cannot convert from 'QVector' to 'const QXmlStreamAttributes'
with
[
T=QXmlStreamAttribute
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
< /code>
Eine andere Sache, die mir aufgefallen ist: < /h2>
Dieser Code kompiliert: < /p>
QVector v1 = (QVector()
, aber dies tut jedoch nicht, obwohl qxmlstreamAttributes von QVector < /code>: < /p>
erbtQXmlStreamAttributes v2 = (QXmlStreamAttributes()
Es schlägt mit demselben Fehler fehl>
Ich bin es gewohnt, die QStringList ()
writer.writeAttributes(QXmlStreamAttributes()
Es schlägt mit Fehler fehl: < /p>
C:\Workspace\untitled5\mainwindow.cpp:18: error: C2664: 'QXmlStreamWriter::writeAttributes' : cannot convert parameter 1 from 'QVector' to 'const QXmlStreamAttributes &'
with
[
T=QXmlStreamAttribute
]
Reason: cannot convert from 'QVector' to 'const QXmlStreamAttributes'
with
[
T=QXmlStreamAttribute
]
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
< /code>
Eine andere Sache, die mir aufgefallen ist: < /h2>
Dieser Code kompiliert: < /p>
QVector v1 = (QVector()
, aber dies tut jedoch nicht, obwohl qxmlstreamAttributes von QVector < /code>: < /p>
erbtQXmlStreamAttributes v2 = (QXmlStreamAttributes()
Es schlägt mit demselben Fehler fehl>