<?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[QDataWidgetMapper]]></title><description><![CDATA[<p dir="auto">Is there any way to make QDataWidgetMapper use two different roles for displaying data in mapped widgets? I want to show formatted string from (for example) DisplayRole by default in QLineEdit, and raw data string from (for example) EditRole when user starts editing it.</p>
]]></description><link>https://forum.qt.io/topic/157256/qdatawidgetmapper</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Apr 2026 10:16:43 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/157256.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Jun 2024 13:42:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QDataWidgetMapper on Fri, 14 Jun 2024 19:47:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">From the looks of it, a custom QStyledItemDelegate might be what you are looking for. See the <a href="https://doc.qt.io/qt-6/qdatawidgetmapper.html#setItemDelegate" target="_blank" rel="noopener noreferrer nofollow ugc">setItemDelegate documentation</a>.</p>
]]></description><link>https://forum.qt.io/post/802668</link><guid isPermaLink="true">https://forum.qt.io/post/802668</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 14 Jun 2024 19:47:37 GMT</pubDate></item></channel></rss>