<?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[Custom widget in embedded system overhead]]></title><description><![CDATA[<p dir="auto">Dear Qt experts!</p>
<p dir="auto">We are trying to use Qt 4.8.5 for some Linux-based embedded medical devices in our company. I need to plot measured data and update them very often (20-30fps). The system is ARM based, 400Mhz, have no GPU and no FPU. I subclassed QWidget and overridden the paintEvent(). I have WA_OpaquePaintEvent and WA_StaticContents set. For testing, my paint event is empty, and I call the update() function of the widget form a timer set to 50ms. My problem is that the empty update is eating up 30% of the CPU. The amount varies with the area of the widget, so I think QT may redraw something in the background. I read many posts but I cannot find the solution for my problem. If I comment out the update call, the CPU usage drops to ~1% (even if I generate a sine in the timer for testing the widget, which should be much more complex than an empty function call). My widget is rectangular, is not transparent and I want to handle the full drawing procedure from the paint event.</p>
<p dir="auto">Is it possible to reduce this overhead, and handle the whole painting process by my own?</p>
<p dir="auto">Thank You<br />
Robert Csordas</p>
]]></description><link>https://forum.qt.io/topic/30291/custom-widget-in-embedded-system-overhead</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 08:46:11 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/30291.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Aug 2013 10:56:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Custom widget in embedded system overhead on Sun, 04 Aug 2013 11:34:40 GMT]]></title><description><![CDATA[<p dir="auto">(<em><em>EDIT</em>: Oops, posted to wrong thread, sorry</em>)</p>
]]></description><link>https://forum.qt.io/post/189397</link><guid isPermaLink="true">https://forum.qt.io/post/189397</guid><dc:creator><![CDATA[JKSH]]></dc:creator><pubDate>Sun, 04 Aug 2013 11:34:40 GMT</pubDate></item></channel></rss>