Note that there are some explanatory texts on larger screens.

plurals
  1. POIncluding XML library in Qt
    primarykey
    data
    text
    <p>I have issues including a couple of libaries in Qt:</p> <pre><code>#include &lt;QXmlStreamWriter&gt; </code></pre> <p>These are located at top of my class, Qt Core are included into the Pro file (I'm using Qt creator), just a complete normal inclusion I have done hundred of times before (including this). </p> <p>This town even though I declare nothing from QXmlStreamWriter in my class the compiler throws this error when I compile it: (Shortened down the full path)</p> <pre><code>Qt\4.8.1\mingw\include\QtCore\qxmlstream.h:471: error: 'void QXmlStreamWriter::writeStartElement(const QString&amp;, const QString&amp;)' cannot be overloaded </code></pre> <p>The error is at the "include" line itself. There is absolutely nothing in the rest of the class that does anything with it at the moment. </p> <p>This is the class it is included in:</p> <pre><code>#include "charactersheetlayout.h" #include "ui_charactersheetlayout.h" #include &lt;QDir&gt; #include &lt;QDebug&gt; #include &lt;QXmlStreamWriter&gt; //This is where the compiler complains. characterSheetLayout::characterSheetLayout(QWidget *parent) : QWidget(parent), ui(new Ui::characterSheetLayout) { ui-&gt;setupUi(this); //Just checking that a folder exists, nothing important. if(!QDir("csTemplates").exists()) { this-&gt;createDefaultTemplate(); } } </code></pre> <p>The header file does not have anything that is related to QXmlStreamWriter.</p> <p>Appreciate any help I get :-)</p> <p>Edit: Header file on request, note that every function and variable does actually not contain any code at the moment.</p> <pre><code>#ifndef CHARACTERSHEETLAYOUT_H #define CHARACTERSHEETLAYOUT_H #include &lt;QWidget&gt; namespace Ui { class characterSheetLayout; } class characterSheetLayout : public QWidget { Q_OBJECT public: explicit characterSheetLayout(QWidget *parent = 0); ~characterSheetLayout(); int validateSheet(); void promptError(QString error); void standard3_5(); private: Ui::characterSheetLayout *ui; void createDefaultTemplate(); }; #endif // CHARACTERSHEETLAYOUT_H </code></pre> <p>Pro file:</p> <pre><code>QT += core gui QT += webkit QT += network TARGET = dndManager TEMPLATE = app CONFIG += release SOURCES += main.cpp\ mainwindow.cpp \ startscreen.cpp \ createadventure.cpp \ charactersheetlayout.cpp \ gameui.cpp \ character.cpp \ characterscreen.cpp \ gamescreen.cpp \ settings.cpp \ wikidisplay.cpp \ admincharacterscreen.cpp \ server.cpp \ participant.cpp \ connectionmanager.cpp \ client.cpp HEADERS += mainwindow.h \ startscreen.h \ createadventure.h \ charactersheetlayout.h \ gameui.h \ character.h \ characterscreen.h \ gamescreen.h \ settings.h \ wikidisplay.h \ admincharacterscreen.h \ server.h \ participant.h \ connectionmanager.h \ client.h FORMS += mainwindow.ui \ startscreen.ui \ createadventure.ui \ charactersheetlayout.ui \ gameui.ui \ characterscreen.ui \ gamescreen.ui \ settings.ui \ wikidisplay.ui \ admincharacterscreen.ui </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload