<?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[ScrollArea with a gridLayout inside not scrolling]]></title><description><![CDATA[<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/286c0273-66e8-494c-8833-b8ccdf397c3e.png" alt="15e9574f-2ba0-4a11-a79c-64a3e6587ddd-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">code to populate it</p>
<pre><code class="language-c++">    filemanager FileManager;

    QStringList test = FileManager.openDir(":/image/palettes/");
    int cc=0;
    for (QString &amp;s : test)
    {
        QPushButton *button = new QPushButton;
        button-&gt;setObjectName("DeviceButton" + QString::number(cc++));
        button-&gt;setMinimumHeight(45);
        button-&gt;setMaximumHeight(45);
        button-&gt;setCursor(Qt::PointingHandCursor);

        button-&gt;setStyleSheet("border-image: url("+s+") 0 0 0 0 stretch stretch;");
        connect(button, &amp;QPushButton::clicked, [=]() { sendBinary("paletteActive", cc); });
        ui-&gt;gridLayoutPaletteContent-&gt;addWidget(button);
    }
</code></pre>
<p dir="auto">when running this on my android tablet i can't scroll by just touching, hold and drag on the screen, i have to do it on the scrollbar to the right!</p>
<p dir="auto">how do i fix this?</p>
]]></description><link>https://forum.qt.io/topic/130548/scrollarea-with-a-gridlayout-inside-not-scrolling</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 18:42:17 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/130548.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Sep 2021 21:05:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ScrollArea with a gridLayout inside not scrolling on Fri, 24 Sep 2021 23:46:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> i'll check that out!</p>
]]></description><link>https://forum.qt.io/post/682067</link><guid isPermaLink="true">https://forum.qt.io/post/682067</guid><dc:creator><![CDATA[Kris Revi]]></dc:creator><pubDate>Fri, 24 Sep 2021 23:46:54 GMT</pubDate></item><item><title><![CDATA[Reply to ScrollArea with a gridLayout inside not scrolling on Fri, 24 Sep 2021 18:23:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">From the top of my head, I would say you need to check <a href="https://doc.qt.io/qt-5/qgesturerecognizer.html" target="_blank" rel="noopener noreferrer nofollow ugc">QGestureRecognizer</a>.</p>
]]></description><link>https://forum.qt.io/post/682048</link><guid isPermaLink="true">https://forum.qt.io/post/682048</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 24 Sep 2021 18:23:40 GMT</pubDate></item></channel></rss>