<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Windows: C++ does not support default-int]]></title><description><![CDATA[<pre><code>void MainWindow::keyPressEvent(QKeyEvent *event)
{
    qDebug() &lt;&lt; event;
    ui-&gt;statusBar-&gt;showMessage(event-&gt;text());
    if (event-&gt;key() == Qt::Key_Escape) {
        ui-&gt;pushButton_Esc-&gt;setChecked(true);
    }
    ....
}
</code></pre>
<p dir="auto">Linux has no error.</p>
<p dir="auto">Windows error:<br />
moc_mainwindow.cpp</p>
<pre><code>QT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = {
{ &amp;QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data,
      qt_meta_data_MainWindow,  qt_static_metacall, nullptr, nullptr}
};
</code></pre>
<p dir="auto">error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</p>
]]></description><link>https://forum.qt.io/topic/94063/windows-c-does-not-support-default-int</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 10:41:16 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/94063.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Aug 2018 09:47:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Windows: C++ does not support default-int on Mon, 27 Aug 2018 09:58:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sonichy">@<bdi>sonichy</bdi></a></p>
<p dir="auto">You should indicate for which line the error is output.</p>
<p dir="auto">I would assume that it is</p>
<pre><code>    qDebug() &lt;&lt; event;
</code></pre>
<p dir="auto">You are simply trying to output an address there. That is probably open to debate if you want to treat as error or not.<br />
If you are really interested in the address only, than cast it as an integer.</p>
]]></description><link>https://forum.qt.io/post/478348</link><guid isPermaLink="true">https://forum.qt.io/post/478348</guid><dc:creator><![CDATA[koahnig]]></dc:creator><pubDate>Mon, 27 Aug 2018 09:58:43 GMT</pubDate></item><item><title><![CDATA[Reply to Windows: C++ does not support default-int on Mon, 27 Aug 2018 09:57:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sonichy">@<bdi>sonichy</bdi></a><br />
In which line is the error raised?<br />
Typically, some symbol has only been forward-declared, but the corresponding header file has not been included.</p>
]]></description><link>https://forum.qt.io/post/478347</link><guid isPermaLink="true">https://forum.qt.io/post/478347</guid><dc:creator><![CDATA[Asperamanca]]></dc:creator><pubDate>Mon, 27 Aug 2018 09:57:20 GMT</pubDate></item></channel></rss>