<?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[Connect QSpinBox with QTimer]]></title><description><![CDATA[<p dir="auto">Hey everyone,<br />
I think my Problem is a pretty small one for most of you, but I don't get any solution yet, it's my first Qt Programm.</p>
<p dir="auto">What I want to do:<br />
In Qt Designer I added  a QSpinBox. The user can choose a value between 1 and 10. This value should get connected to a QTimer, so that I get something like</p>
<p dir="auto">timer-&gt;start(Value of the QSpinBox)</p>
<p dir="auto">Any Tipps or Solution? Thanks a lot!</p>
<pre><code>Screenshot::Screenshot(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::Screenshot)
{
    ui-&gt;setupUi(this);
    

    timer = new QTimer(this);
    connect(timer, SIGNAL(timeout()), this, SLOT(timerSlot()));

    connect(ui-&gt;spinBox, SIGNAL(valueChanged(int value)), this, SLOT(spinBoxSlot(int value)));

}

Screenshot::~Screenshot()
{
    delete ui;
}
void Screenshot::IntervallSpinBox()
{
    timer-&gt;start(int value);
}
</code></pre>
]]></description><link>https://forum.qt.io/topic/94429/connect-qspinbox-with-qtimer</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 05:53:32 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/94429.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Sep 2018 21:09:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connect QSpinBox with QTimer on Sun, 09 Sep 2018 15:37:59 GMT]]></title><description><![CDATA[<p dir="auto">hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/franad">@<bdi>franad</bdi></a>,</p>
<p dir="auto">if your problem is solved, please mark this topic as such. Thanks!</p>
]]></description><link>https://forum.qt.io/post/480458</link><guid isPermaLink="true">https://forum.qt.io/post/480458</guid><dc:creator><![CDATA[aha_1980]]></dc:creator><pubDate>Sun, 09 Sep 2018 15:37:59 GMT</pubDate></item><item><title><![CDATA[Reply to Connect QSpinBox with QTimer on Sun, 09 Sep 2018 08:50:16 GMT]]></title><description><![CDATA[<p dir="auto">Thanks a lot! That helped me out!</p>
]]></description><link>https://forum.qt.io/post/480433</link><guid isPermaLink="true">https://forum.qt.io/post/480433</guid><dc:creator><![CDATA[franad]]></dc:creator><pubDate>Sun, 09 Sep 2018 08:50:16 GMT</pubDate></item><item><title><![CDATA[Reply to Connect QSpinBox with QTimer on Sat, 08 Sep 2018 23:38:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi</p>
<pre><code>connect without using parameter name, just type
connect(ui-&gt;spinBox, SIGNAL(valueChanged(int )), this, SLOT(spinBoxSlot(int )));

and use the value in slot
void Screenshot::IntervallSpinBox(int value)
{
    timer-&gt;start(value);
}
</code></pre>
]]></description><link>https://forum.qt.io/post/480409</link><guid isPermaLink="true">https://forum.qt.io/post/480409</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sat, 08 Sep 2018 23:38:15 GMT</pubDate></item></channel></rss>