<?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[#include &lt;QtWidgets&#x2F;QtWidgets&gt; problem]]></title><description><![CDATA[<p dir="auto">Dear guys,</p>
<p dir="auto">I had my program compiling very well but now i dont know what happened ..<br />
I have now Qt.4.8.6 with mingw</p>
<p dir="auto">in my header i had</p>
<p dir="auto">@<br />
#include &lt;QtWidgets/QtWidgets&gt;<br />
@</p>
<p dir="auto">and<br />
@<br />
#include &lt;Qtwidgets/QApplication&gt;<br />
@<br />
and<br />
@<br />
#include &lt;QtPrintSupport/QPrinter&gt;<br />
#include &lt;QtPrintSupport/QPrintDialog&gt;<br />
@<br />
but now it says: no such file or directory</p>
<p dir="auto">could any body please describe me the problem in details because i don't understand it?</p>
]]></description><link>https://forum.qt.io/topic/48210/include-qtwidgets-qtwidgets-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 02 May 2026 08:16:26 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/48210.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Nov 2014 16:09:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to #include &lt;QtWidgets&#x2F;QtWidgets&gt; problem on Wed, 26 Nov 2014 09:19:25 GMT]]></title><description><![CDATA[<p dir="auto">bq. no it was written for qt4<br />
but may be a different version of qt creator</p>
<p dir="auto">It's like saying it was written for different version of notepad. Qt Creator is an IDE (a fancy text editor that also runs build tools). It has little to do with whether this code compiles or not.</p>
<p dir="auto">Most of the code that you posted so far was Qt5 specific and needed a backport to Qt4, so get your story straight ;)</p>
]]></description><link>https://forum.qt.io/post/252326</link><guid isPermaLink="true">https://forum.qt.io/post/252326</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Wed, 26 Nov 2014 09:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to #include &lt;QtWidgets&#x2F;QtWidgets&gt; problem on Wed, 26 Nov 2014 06:43:29 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="SherifOmran" date="1416965171"]any body has a clue for the input keyboard function above ..[/quote]Read the link in my previous post</p>
]]></description><link>https://forum.qt.io/post/252302</link><guid isPermaLink="true">https://forum.qt.io/post/252302</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Wed, 26 Nov 2014 06:43:29 GMT</pubDate></item><item><title><![CDATA[Reply to #include &lt;QtWidgets&#x2F;QtWidgets&gt; problem on Wed, 26 Nov 2014 01:26:11 GMT]]></title><description><![CDATA[<p dir="auto">no it was written for qt4<br />
but may be a different version of qt creator</p>
<p dir="auto">any body has a clue for the input keyboard function above ..</p>
]]></description><link>https://forum.qt.io/post/252289</link><guid isPermaLink="true">https://forum.qt.io/post/252289</guid><dc:creator><![CDATA[SherifOmran]]></dc:creator><pubDate>Wed, 26 Nov 2014 01:26:11 GMT</pubDate></item><item><title><![CDATA[Reply to #include &lt;QtWidgets&#x2F;QtWidgets&gt; problem on Tue, 25 Nov 2014 09:06:59 GMT]]></title><description><![CDATA[<p dir="auto">bq. how come that it inherits the Qt5 stuff?</p>
<p dir="auto">It doesn't inherit anything. What does that even mean?</p>
<p dir="auto">This is apparently code written for Qt5 and you are trying to run it with Qt4 so it breaks.</p>
]]></description><link>https://forum.qt.io/post/252190</link><guid isPermaLink="true">https://forum.qt.io/post/252190</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Tue, 25 Nov 2014 09:06:59 GMT</pubDate></item><item><title><![CDATA[Reply to #include &lt;QtWidgets&#x2F;QtWidgets&gt; problem on Tue, 25 Nov 2014 03:41:05 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="SherifOmran" date="1416881475"]but i am using Qt4.8[/quote]How did you check this?</p>
<p dir="auto">[quote author="SherifOmran" date="1416882219"]<br />
@<br />
QLocale::keyboardInputLocale ();<br />
@[/quote]That function doesn't exist in Qt 4 or Qt 5. Where did you get it from?</p>
<p dir="auto">Anyway, your question was already answered 6 months ago: <a href="http://qt-project.org/forums/viewthread/42636" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/forums/viewthread/42636</a></p>
]]></description><link>https://forum.qt.io/post/252178</link><guid isPermaLink="true">https://forum.qt.io/post/252178</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Tue, 25 Nov 2014 03:41:05 GMT</pubDate></item><item><title><![CDATA[Reply to #include &lt;QtWidgets&#x2F;QtWidgets&gt; problem on Tue, 25 Nov 2014 02:23:39 GMT]]></title><description><![CDATA[<p dir="auto">I have now the following issue, it does not find the QInputMethod any more<br />
and says keyboardinputlocal is not a member of QLocal .. haa !!<br />
Any idea?<br />
thanks</p>
<p dir="auto">@<br />
#include &lt;QInputMethod&gt;<br />
QLocale t= QLocale::keyboardInputLocale ();<br />
@</p>
]]></description><link>https://forum.qt.io/post/252175</link><guid isPermaLink="true">https://forum.qt.io/post/252175</guid><dc:creator><![CDATA[SherifOmran]]></dc:creator><pubDate>Tue, 25 Nov 2014 02:23:39 GMT</pubDate></item><item><title><![CDATA[Reply to #include &lt;QtWidgets&#x2F;QtWidgets&gt; problem on Tue, 25 Nov 2014 02:11:15 GMT]]></title><description><![CDATA[<p dir="auto">thank you for your reply<br />
when i drop the last 0, it works .. but i am using Qt4.8 ..<br />
how come that it inherits the Qt5 stuff?<br />
this is the proper way to do it<br />
@<br />
Login-&gt;setWindowTitle(QApplication::translate("Login", "Login", 0, QApplication::UnicodeUTF8));<br />
@</p>
]]></description><link>https://forum.qt.io/post/252172</link><guid isPermaLink="true">https://forum.qt.io/post/252172</guid><dc:creator><![CDATA[SherifOmran]]></dc:creator><pubDate>Tue, 25 Nov 2014 02:11:15 GMT</pubDate></item><item><title><![CDATA[Reply to #include &lt;QtWidgets&#x2F;QtWidgets&gt; problem on Tue, 25 Nov 2014 01:42:14 GMT]]></title><description><![CDATA[<p dir="auto">tanslate() takes different number of arguments in Qt4 and Qt5:<br />
"Qt 4":<a href="http://qt-project.org/doc/qt-4.8/qcoreapplication.html#translate" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-4.8/qcoreapplication.html#translate</a><br />
"Qt 5":<a href="http://qt-project.org/doc/qt-5/qcoreapplication.html#translate" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/qcoreapplication.html#translate</a><br />
You need to supply the additional <em>Encoding</em> argument or drop the last 0 entirely if you're not using it anywhere.</p>
]]></description><link>https://forum.qt.io/post/252169</link><guid isPermaLink="true">https://forum.qt.io/post/252169</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Tue, 25 Nov 2014 01:42:14 GMT</pubDate></item><item><title><![CDATA[Reply to #include &lt;QtWidgets&#x2F;QtWidgets&gt; problem on Tue, 25 Nov 2014 01:31:23 GMT]]></title><description><![CDATA[<p dir="auto">I ve this code and there is a mistake, i wonder it used to compile very well before.. Could it be that i used vs2010 compiler and now MinGw?</p>
<p dir="auto">In Ui_login.h file , i get the following</p>
<p dir="auto">@<br />
void retranslateUi(QWidget *Login)<br />
{<br />
Login-&gt;setWindowTitle(QApplication::translate("Login", "Login", 0, 0));<br />
loginbrowse-&gt;setText(QApplication::translate("Login", "...", 0, 0));<br />
} // retranslateUi<br />
@</p>
<p dir="auto">Error says</p>
<p dir="auto">Invalid conversion from int to Qcoreapplication::Encoding</p>
<p dir="auto">I know it could be solved with the following, but i want to understand what is the mistake in the above QApplication::translate ..<br />
@<br />
QObject::tr("Login"));<br />
@</p>
]]></description><link>https://forum.qt.io/post/252168</link><guid isPermaLink="true">https://forum.qt.io/post/252168</guid><dc:creator><![CDATA[SherifOmran]]></dc:creator><pubDate>Tue, 25 Nov 2014 01:31:23 GMT</pubDate></item></channel></rss>