<?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[QT5, linuxfb doesn&#x27;t seem to work with tslib plugin.]]></title><description><![CDATA[<p dir="auto">I am working on porting a QT4 app to QT5.<br />
Despite the fact that I am using a PhyCORE-AM335(GL ES2 ) board for testing, the only QPA platform option I have is linuxfb because the app is suppose to run also on some older board where only  linuxfb is available.</p>
<ol>
<li>
<p dir="auto">Using Codesorcery lite (24.5.2013)  for compilation.</p>
</li>
<li>
<p dir="auto">built QT with the following conf spec<br />
@ ./configure -continue -verbose -qpa linuxfb -linuxfb -no-iconv -no-warnings-are-errors -opensource -no-optimized-qmake -release -no-icu -no-opengl -no-xcb -no-largefile -no-opengl -qt-zlib -qt-libpng -qt-libjpeg -openssl -nomake examples  -nomake tests -confirm-license -prefix /opt/arm -xplatform linux-arm-gnueabi-g++@</p>
</li>
<li>
<p dir="auto">tslib  enviroment is already set ( the QT4 app is working fine)</p>
</li>
<li>
<p dir="auto">I have applied "this":<a href="https://github.com/prabindh/qt-configs/blob/master/qt5_1.0_Feb13/tslib.patch" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/prabindh/qt-configs/blob/master/qt5_1.0_Feb13/tslib.patch</a> patch.</p>
</li>
<li>
<p dir="auto">I build qtslib plugin with the printf uncommented<br />
@<br />
void QTsLibMouseHandler::readMouseData()<br />
{<br />
...<br />
QPoint pos(x, y);</p>
<pre><code> printf("handleMouseEvent %d %d %d %ld\n", m_x, m_y, pressed, sample.tv.tv_usec);

 QWindowSystemInterface::handleMouseEvent(0, pos, pos, pressed ? Qt::LeftButton : Qt::NoButton);
</code></pre>
</li>
</ol>
<p dir="auto">...<br />
}<br />
}@</p>
<p dir="auto">When launched the "handleMouseEvent" messages are shown but still the input is not taken.<br />
This means the input is more or less not propagated properly through QWindowSystemInterface::handleMouseEvent...<br />
After taking a look at the platform code I noticed that the linuxfb implements no window interface like other plugins (directfb, xcb) do.</p>
<p dir="auto">Here there are 2 scenarios<br />
2.a It should work as it is and it's a bug( or a feature ofc) I haven't included<br />
2.b. It's simply not implemented and in this case I would really apreciate some hints of about how to start implementing it.</p>
<p dir="auto">thank you in advance,<br />
Daniel</p>
]]></description><link>https://forum.qt.io/topic/35176/qt5-linuxfb-doesn-t-seem-to-work-with-tslib-plugin</link><generator>RSS for Node</generator><lastBuildDate>Fri, 07 Aug 2026 10:37:17 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/35176.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Dec 2013 15:03:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QT5, linuxfb doesn&#x27;t seem to work with tslib plugin. on Tue, 08 Jul 2014 10:53:51 GMT]]></title><description><![CDATA[<p dir="auto">Dear Daneilg,</p>
<p dir="auto">I did the same but when i run the application,<br />
@QTsLibMouseHandler::QTsLibMouseHandler(const QString &amp;key,<br />
const QString &amp;specification)<br />
: m_notify(0), m_x(0), m_y(0), m_pressed(0), m_rawMode(false)<br />
{<br />
qDebug() &lt;&lt; "QTsLibMouseHandler" &lt;&lt; key &lt;&lt; specification;<br />
@<br />
Above qDebug statement is not getting called. This means the control is not going into the qtslib.cpp file.</p>
<p dir="auto">Please share your valuable advice.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.qt.io/post/226060</link><guid isPermaLink="true">https://forum.qt.io/post/226060</guid><dc:creator><![CDATA[Sidii]]></dc:creator><pubDate>Tue, 08 Jul 2014 10:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to QT5, linuxfb doesn&#x27;t seem to work with tslib plugin. on Mon, 16 Dec 2013 15:26:39 GMT]]></title><description><![CDATA[<p dir="auto">Great, It solves also my problem</p>
<p dir="auto"><a href="http://qt-project.org/forums/viewthread/36120/" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/forums/viewthread/36120/</a></p>
<p dir="auto">Thank you very much daneilg!</p>
]]></description><link>https://forum.qt.io/post/207594</link><guid isPermaLink="true">https://forum.qt.io/post/207594</guid><dc:creator><![CDATA[kuschky]]></dc:creator><pubDate>Mon, 16 Dec 2013 15:26:39 GMT</pubDate></item><item><title><![CDATA[Reply to QT5, linuxfb doesn&#x27;t seem to work with tslib plugin. on Mon, 16 Dec 2013 13:15:03 GMT]]></title><description><![CDATA[<p dir="auto">Also a minor change for tslib plugin.<br />
Since most systems that use tslib have already  defined TSLIB_TSDEVICE ,  I thought it makes sense to inherit this as the default value when available.</p>
<p dir="auto">/base/src/plugins/generic/tslib/qtslib.cpp<br />
@<br />
QTsLibMouseHandler::QTsLibMouseHandler(const QString &amp;key,<br />
const QString &amp;specification)<br />
: m_notify(0), m_x(0), m_y(0), m_pressed(0), m_rawMode(false)<br />
{<br />
...<br />
QByteArray device = qgetenv("TSLIB_TSDEVICE");<br />
if(device.isEmpty())<br />
{<br />
device = "/dev/input/event0";<br />
}<br />
.....<br />
}<br />
@</p>
]]></description><link>https://forum.qt.io/post/207579</link><guid isPermaLink="true">https://forum.qt.io/post/207579</guid><dc:creator><![CDATA[daneilg]]></dc:creator><pubDate>Mon, 16 Dec 2013 13:15:03 GMT</pubDate></item><item><title><![CDATA[Reply to QT5, linuxfb doesn&#x27;t seem to work with tslib plugin. on Mon, 16 Dec 2013 13:01:40 GMT]]></title><description><![CDATA[<p dir="auto">After some researchign I found out that the screen handling in linuxfb plugin was the issue.  Basically , for the linuxfb  platform, the screen was registered before its geometry was calculated resulting that the qpa controller will deal with a screen instance that has geometry of QRect(0,0,1,1) . This masks pretty much all the painting and the input.</p>
<p dir="auto">Other than that I forced a default font size of at least 10  since on my system the default pixel size is 0 rendering all the layout based samples(most of them) to look really really small.</p>
<p dir="auto">The changes that made the things work for me:<br />
@</p>
<p dir="auto">QLinuxFbIntegration::QLinuxFbIntegration(const QStringList &amp;paramList)<br />
: m_fontDb(new QGenericUnixFontDatabase()),m_paramList(paramList)<br />
{<br />
}</p>
<p dir="auto">void QLinuxFbIntegration::initialize()<br />
{<br />
initializeFont();<br />
initializeScreen();<br />
}<br />
void QLinuxFbIntegration::initializeScreen()<br />
{<br />
m_primaryScreen = new QLinuxFbScreen(m_paramList);<br />
m_primaryScreen-&gt;initialize();<br />
screenAdded(m_primaryScreen);<br />
}</p>
<p dir="auto">void QLinuxFbIntegration::initializeFont()<br />
{<br />
if(m_fontDb &amp;&amp;<br />
m_fontDb-&gt;defaultFont().pixelSize() &lt; 10)<br />
{<br />
m_fontDb-&gt;defaultFont().setPixelSize(10);<br />
}</p>
<p dir="auto">}</p>
<p dir="auto">QT_END_NAMESPACE<br />
@</p>
<p dir="auto">and the header</p>
<p dir="auto">@<br />
#ifndef QLINUXFBINTEGRATION_H<br />
#define QLINUXFBINTEGRATION_H</p>
<p dir="auto">#include &lt;qpa/qplatformintegration.h&gt;</p>
<p dir="auto">QT_BEGIN_NAMESPACE</p>
<p dir="auto">class QLinuxFbIntegrationPrivate;<br />
class QAbstractEventDispatcher;<br />
class QLinuxFbScreen;</p>
<p dir="auto">class QLinuxFbIntegration : public QPlatformIntegration<br />
{</p>
<p dir="auto">........<br />
protected:<br />
virtual void initializeScreen();<br />
virtual void initializeFont();<br />
..............<br />
private:<br />
QStringList m_paramList;<br />
............</p>
<p dir="auto">};</p>
<p dir="auto">QT_END_NAMESPACE</p>
<p dir="auto">#endif // QLINUXFBINTEGRATION_H<br />
@</p>
]]></description><link>https://forum.qt.io/post/207572</link><guid isPermaLink="true">https://forum.qt.io/post/207572</guid><dc:creator><![CDATA[daneilg]]></dc:creator><pubDate>Mon, 16 Dec 2013 13:01:40 GMT</pubDate></item></channel></rss>