<?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[Invalid use of non-static member function]]></title><description><![CDATA[<p dir="auto">Hi i am doing one little example to capture some pictures improved by me.<br />
QPixmap captura;<br />
captura = QScreen::grabWindow(QApplication::desktop()-&gt;winId());<br />
But show me this:<br />
invalid use of non-static member function</p>
<p dir="auto">I think QApplication::desktop()-&gt;winId() is outdate?<br />
Bye.</p>
]]></description><link>https://forum.qt.io/topic/72115/invalid-use-of-non-static-member-function</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 10:37:07 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/72115.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Oct 2016 12:41:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Invalid use of non-static member function on Sun, 09 Oct 2016 14:12:00 GMT]]></title><description><![CDATA[<p dir="auto">Solved thx for the documentation!</p>
]]></description><link>https://forum.qt.io/post/352841</link><guid isPermaLink="true">https://forum.qt.io/post/352841</guid><dc:creator><![CDATA[Jeronimo]]></dc:creator><pubDate>Sun, 09 Oct 2016 14:12:00 GMT</pubDate></item><item><title><![CDATA[Reply to Invalid use of non-static member function on Sun, 09 Oct 2016 13:09:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jeronimo">@<bdi>Jeronimo</bdi></a><br />
To add to <a class="plugin-mentions-user plugin-mentions-a" href="/user/kenchan">@<bdi>kenchan</bdi></a>  here is a link to <a href="http://doc.qt.io/qt-5/qscreen.html" target="_blank" rel="noopener noreferrer nofollow ugc">QScreen documentation</a> and there is actually an <a href="http://doc.qt.io/qt-5/qtwidgets-desktop-screenshot-example.html" target="_blank" rel="noopener noreferrer nofollow ugc">example</a> available.</p>
]]></description><link>https://forum.qt.io/post/352839</link><guid isPermaLink="true">https://forum.qt.io/post/352839</guid><dc:creator><![CDATA[koahnig]]></dc:creator><pubDate>Sun, 09 Oct 2016 13:09:18 GMT</pubDate></item><item><title><![CDATA[Reply to Invalid use of non-static member function on Sun, 09 Oct 2016 12:55:30 GMT]]></title><description><![CDATA[<p dir="auto">grabWindow is not a static function of  QScreen. hence the error.</p>
<p dir="auto">you need to get the screen from the application object and then grab it.</p>
]]></description><link>https://forum.qt.io/post/352837</link><guid isPermaLink="true">https://forum.qt.io/post/352837</guid><dc:creator><![CDATA[kenchan]]></dc:creator><pubDate>Sun, 09 Oct 2016 12:55:30 GMT</pubDate></item></channel></rss>