<?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[[IOS] undefine qt_no_printer on IOS]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">I know that print support is not available for ios, but I would like to make some tests and I need to undefine QT_NO_PRINTER.</p>
<p dir="auto">How/where can I undefine QT_NO_PRINTER.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://forum.qt.io/topic/102824/ios-undefine-qt_no_printer-on-ios</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 23:17:25 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/102824.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 May 2019 14:08:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [IOS] undefine qt_no_printer on IOS on Sat, 18 May 2019 21:28:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sftpck">@<bdi>sftpck</bdi></a> said in <a href="/post/529448">[IOS] undefine qt_no_printer on IOS</a>:</p>
<blockquote>
<p dir="auto">QT_NO_PRINTER</p>
</blockquote>
<p dir="auto">You have to modify <code>qtbase/src/printsupport/configure.json</code> so that the tests are run for iOS and maybe pass without other modifications.</p>
]]></description><link>https://forum.qt.io/post/529737</link><guid isPermaLink="true">https://forum.qt.io/post/529737</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 18 May 2019 21:28:36 GMT</pubDate></item><item><title><![CDATA[Reply to [IOS] undefine qt_no_printer on IOS on Thu, 16 May 2019 22:00:30 GMT]]></title><description><![CDATA[<p dir="auto">It doesn't build. I don't have the machine with me right now, but with a new project and this sample code <a href="https://doc.qt.io/qt-5/qprinter.html#isValid" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qprinter.html#isValid</a> I can compile without any problems with macos kit, but changing to iOS kit, I get compile errors. (and inspecting the header <a href="https://github.com/qt/qtbase/blob/5.12/src/printsupport/kernel/qprinter.h" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/qt/qtbase/blob/5.12/src/printsupport/kernel/qprinter.h</a>,  everything inside #ifndef QT_NO_PRINTER block is grayed out with iOS kit, but not with macOS kit)</p>
]]></description><link>https://forum.qt.io/post/529448</link><guid isPermaLink="true">https://forum.qt.io/post/529448</guid><dc:creator><![CDATA[sftpck]]></dc:creator><pubDate>Thu, 16 May 2019 22:00:30 GMT</pubDate></item><item><title><![CDATA[Reply to [IOS] undefine qt_no_printer on IOS on Thu, 16 May 2019 21:04:12 GMT]]></title><description><![CDATA[<p dir="auto">Wait, the fact that Qt Creator shows something grayed out doesn't mean it is necessary disabled when you build it. Qt Creator doesn't necessarily find everything that allows it to do the highlighting propel.</p>
<p dir="auto">After a quick check of the <code>printsupport</code> module, I haven't seen anything disabling it for iOS (I may have missed something though). If you want to check whether your modifications are building, put some blatant error in the code or are an <code>#error</code> statement in it and compile Qt.</p>
]]></description><link>https://forum.qt.io/post/529436</link><guid isPermaLink="true">https://forum.qt.io/post/529436</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 16 May 2019 21:04:12 GMT</pubDate></item><item><title><![CDATA[Reply to [IOS] undefine qt_no_printer on IOS on Thu, 16 May 2019 11:46:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/j.hilk">@<bdi>J.Hilk</bdi></a> said in <a href="/post/529310">[IOS] undefine qt_no_printer on IOS</a>:</p>
<blockquote>
<p dir="auto">IIRC QPdfWriter works on all platforms.</p>
</blockquote>
<p dir="auto">But that means we would need to change our code in order to replace everything print related to support a specific iOS case.</p>
<p dir="auto">Is it possible to compile Qt framework for iOS with printing support?</p>
]]></description><link>https://forum.qt.io/post/529330</link><guid isPermaLink="true">https://forum.qt.io/post/529330</guid><dc:creator><![CDATA[sftpck]]></dc:creator><pubDate>Thu, 16 May 2019 11:46:02 GMT</pubDate></item><item><title><![CDATA[Reply to [IOS] undefine qt_no_printer on IOS on Thu, 16 May 2019 11:15:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sftpck">@<bdi>sftpck</bdi></a> said in <a href="/post/529308">[IOS] undefine qt_no_printer on IOS</a>:</p>
<blockquote>
<p dir="auto">Since our application needs some form of printing (create pdf, AirPrint), the idea was to create a plugin for iOS based on the cocoa print plugin.</p>
</blockquote>
<p dir="auto">IIRC <a href="https://doc.qt.io/qt-5/qpdfwriter.html" target="_blank" rel="noopener noreferrer nofollow ugc">QPdfWriter</a> works on all platforms.</p>
]]></description><link>https://forum.qt.io/post/529310</link><guid isPermaLink="true">https://forum.qt.io/post/529310</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Thu, 16 May 2019 11:15:17 GMT</pubDate></item><item><title><![CDATA[Reply to [IOS] undefine qt_no_printer on IOS on Thu, 16 May 2019 11:08:58 GMT]]></title><description><![CDATA[<p dir="auto">We are building an application that needs printing support. The application compiles on windows/linux/macos/android. We are now trying to compile the application on iOS. When we choose iOS toolkit to compile the application, file qprinterinfo.h (for example) has a #ifndef QT_NO_PRINTER block and everything inside is grayed out (on Qt creator) because the QT_NO_PRINTER is defined.</p>
<p dir="auto">Since our application needs some form of printing (create pdf, AirPrint), the idea was to create a plugin for iOS based on the cocoa print plugin.</p>
]]></description><link>https://forum.qt.io/post/529308</link><guid isPermaLink="true">https://forum.qt.io/post/529308</guid><dc:creator><![CDATA[sftpck]]></dc:creator><pubDate>Thu, 16 May 2019 11:08:58 GMT</pubDate></item><item><title><![CDATA[Reply to [IOS] undefine qt_no_printer on IOS on Thu, 16 May 2019 10:35:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sftpck">@<bdi>sftpck</bdi></a> can you say bait more about what you actually want to test, and what the issue is?</p>
<p dir="auto">Messing with the Qt source code should be the last resort</p>
]]></description><link>https://forum.qt.io/post/529289</link><guid isPermaLink="true">https://forum.qt.io/post/529289</guid><dc:creator><![CDATA[J.Hilk]]></dc:creator><pubDate>Thu, 16 May 2019 10:35:18 GMT</pubDate></item><item><title><![CDATA[Reply to [IOS] undefine qt_no_printer on IOS on Thu, 16 May 2019 09:33:51 GMT]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">If by building with printing support the variable QT_NO_PRINTER gets undefined, then yes that will do. Do I need to pass any special parameter to config to build for iOS with printing support?</p>
<p dir="auto">Thank you for your reply.</p>
]]></description><link>https://forum.qt.io/post/529272</link><guid isPermaLink="true">https://forum.qt.io/post/529272</guid><dc:creator><![CDATA[sftpck]]></dc:creator><pubDate>Thu, 16 May 2019 09:33:51 GMT</pubDate></item><item><title><![CDATA[Reply to [IOS] undefine qt_no_printer on IOS on Wed, 15 May 2019 20:22:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Do you mean you want to build Qt for iOS with printing support ?</p>
]]></description><link>https://forum.qt.io/post/529135</link><guid isPermaLink="true">https://forum.qt.io/post/529135</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 15 May 2019 20:22:26 GMT</pubDate></item></channel></rss>