<?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[QML and QUndoStack? do we still need a C++ wrapper?]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I don't find many examples on how to plug my <code>QUndoStack</code> in QML.<br />
I'd like at least an Undo and Redo buttons with the action text and why not also the <code>QUndoView</code> in a reactive <code>ListView</code>.<br />
Aren't there an easy way to plug all that in QML? oO<br />
I've found just this kind of example  <a href="http://blackberry.github.io/Qt2Cascades-Samples/docs/undoframework.html" target="_blank" rel="noopener noreferrer nofollow ugc">Qt with Cascades UI Examples Documentation</a> where we need a C++ <code>UndoManager</code> wrapper.<br />
Is it still the case nowadays?<br />
It doesn't look complicated but I'm just wondering if there is not a more straight forward solution.<br />
If you've examples on how to display the <code>QUndoView</code> in a QML <code>ListView</code>, plz share :)</p>
]]></description><link>https://forum.qt.io/topic/123318/qml-and-qundostack-do-we-still-need-a-c-wrapper</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 08:53:36 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/123318.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Feb 2021 12:11:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QML and QUndoStack? do we still need a C++ wrapper? on Tue, 02 Feb 2021 19:34:47 GMT]]></title><description><![CDATA[<p dir="auto">I do not know, it's something you can ask on the <a href="https://lists.qt-project.org/listinfo/interest" target="_blank" rel="noopener noreferrer nofollow ugc">interest mailing list</a>.</p>
<p dir="auto">As for the Declarative Widgets project, I don't think they do anything special for look and feel. The goal is to be able to use widgets in QtQuick applications.</p>
<p dir="auto">I don't know the current plans for widgets on mobile.</p>
]]></description><link>https://forum.qt.io/post/642011</link><guid isPermaLink="true">https://forum.qt.io/post/642011</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 02 Feb 2021 19:34:47 GMT</pubDate></item><item><title><![CDATA[Reply to QML and QUndoStack? do we still need a C++ wrapper? on Tue, 02 Feb 2021 01:00:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> my example was from Nokia 2012, the very beginning of QML if I remember well... How come somthing such important as the Undo Framework is not available directly in QML and/or even better shared between C++ and QML?...<br />
I'll check your article. But does those delaratives Widgets have a native look on mobile devices (Android and iOS?).<br />
One of the reason I switched recently (2020) from Widgets to QML was mainly to relaease "native apps" on all OS.<br />
Any idea if there will be a work on Qt6 as they said to make Widgets look native too on mobile devices?</p>
]]></description><link>https://forum.qt.io/post/641798</link><guid isPermaLink="true">https://forum.qt.io/post/641798</guid><dc:creator><![CDATA[mbruel]]></dc:creator><pubDate>Tue, 02 Feb 2021 01:00:30 GMT</pubDate></item><item><title><![CDATA[Reply to QML and QUndoStack? do we still need a C++ wrapper? on Mon, 01 Feb 2021 19:14:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">AFAIK yes you still have to. As for integrating the view, you should take a look at KDAB's <a href="https://www.google.ch/amp/s/www.kdab.com/declarative-widgets/" target="_blank" rel="noopener noreferrer nofollow ugc">declarative widgets project</a>.</p>
]]></description><link>https://forum.qt.io/post/641773</link><guid isPermaLink="true">https://forum.qt.io/post/641773</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 01 Feb 2021 19:14:35 GMT</pubDate></item></channel></rss>