<?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[What&#x27;s wrong with sample codes at Qt tutorial?]]></title><description><![CDATA[<p dir="auto">Taking sample programs from tutorials to build is my constant way to learn a new language. I got some trouble when learning Qt from tutorials in such way. For example, I got 'no such 'unknown type name --- QPushButton at sample program in <a href="https://doc.qt.io/archives/qt-4.8/gettingstartedqt.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/archives/qt-4.8/gettingstartedqt.html</a></p>
<p dir="auto">Another case, the first line, 'import QtQuick 1.0' was rejected when I used command:<br />
qmlscene hello.qml<br />
, where hello.qml is as in <a href="https://doc.qt.io/archives/qt-4.8/qml-tutorial1.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/archives/qt-4.8/qml-tutorial1.html</a></p>
<p dir="auto">My installed Qt version is 5.11. How can I conquer such version issues?</p>
]]></description><link>https://forum.qt.io/topic/100007/what-s-wrong-with-sample-codes-at-qt-tutorial</link><generator>RSS for Node</generator><lastBuildDate>Sun, 03 May 2026 17:17:13 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/100007.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Feb 2019 07:28:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What&#x27;s wrong with sample codes at Qt tutorial? on Fri, 22 Feb 2019 08:39:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/j.hilk">@<bdi>J.Hilk</bdi></a> I used 'qmlscene hello.qml' and got '<a href="http://qt.qpa.gl" target="_blank" rel="noopener noreferrer nofollow ugc">qt.qpa.gl</a>: Unable to disable rotation' response. What does it mean?</p>
]]></description><link>https://forum.qt.io/post/513307</link><guid isPermaLink="true">https://forum.qt.io/post/513307</guid><dc:creator><![CDATA[Stan Huang]]></dc:creator><pubDate>Fri, 22 Feb 2019 08:39:16 GMT</pubDate></item><item><title><![CDATA[Reply to What&#x27;s wrong with sample codes at Qt tutorial? on Fri, 22 Feb 2019 07:31:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stan-huang">@<bdi>Stan-Huang</bdi></a><br />
there have been major changes between Qt4 and Qt5 so not everything will be 1:1 possible in qt5 as it was in qt4. But it's usually easy enough to adjust qt4 code in a reasonable time frame.</p>
<p dir="auto">for your case, simply use the qt5 equivalent of the pages for example:</p>
<p dir="auto"><a href="https://doc.qt.io/qt-5/gettingstarted.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/gettingstarted.html</a></p>
]]></description><link>https://forum.qt.io/post/513286</link><guid isPermaLink="true">https://forum.qt.io/post/513286</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Fri, 22 Feb 2019 07:31:37 GMT</pubDate></item></channel></rss>