<?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[QTimeEdit set unselectable]]></title><description><![CDATA[<p dir="auto">I use a QTimeEdit to show time, but I do not want to select hour, minute, second (readonly is the same).<br />
How to set it like QLabel ?</p>
]]></description><link>https://forum.qt.io/topic/105803/qtimeedit-set-unselectable</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 14:43:52 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/105803.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Aug 2019 05:32:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QTimeEdit set unselectable on Tue, 20 Aug 2019 09:08:36 GMT]]></title><description><![CDATA[<p dir="auto">I had the same problem and made a subclass QLineView derived from QLineEdit <a href="https://www.tellsubway.website/" target="_blank" rel="noopener noreferrer nofollow ugc">tellsubway</a>. Then, i reimplemented void setReadOnly(bool) and added a member var QPalette activePalette_</p>
]]></description><link>https://forum.qt.io/post/546806</link><guid isPermaLink="true">https://forum.qt.io/post/546806</guid><dc:creator><![CDATA[Milton]]></dc:creator><pubDate>Tue, 20 Aug 2019 09:08:36 GMT</pubDate></item><item><title><![CDATA[Reply to QTimeEdit set unselectable on Sat, 10 Aug 2019 08:02:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi<br />
I don't think there is an option to make the QTimeEdit widget 100% nonclickable.<br />
Outside of setDisabled(true), but that alter how it looks.</p>
<p dir="auto">Why not just use a label then?</p>
<p dir="auto">QDateTime dateTime = dateTime.currentDateTime();<br />
QString timeString = dateTime.toString("hh-mm-ss");<br />
ui-&gt;label-&gt;setText( timeString);</p>
]]></description><link>https://forum.qt.io/post/545581</link><guid isPermaLink="true">https://forum.qt.io/post/545581</guid><dc:creator><![CDATA[mrjj]]></dc:creator><pubDate>Sat, 10 Aug 2019 08:02:40 GMT</pubDate></item><item><title><![CDATA[Reply to QTimeEdit set unselectable on Sat, 10 Aug 2019 06:40:28 GMT]]></title><description><![CDATA[<p dir="auto">If I understand you correctly you want to put the current time on a QLabel in the format hour minute second?</p>
]]></description><link>https://forum.qt.io/post/545578</link><guid isPermaLink="true">https://forum.qt.io/post/545578</guid><dc:creator><![CDATA[Eddy]]></dc:creator><pubDate>Sat, 10 Aug 2019 06:40:28 GMT</pubDate></item></channel></rss>