<?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[[SOLVED] PathView: accessing delegate at current index]]></title><description><![CDATA[<p dir="auto">I have PathView filled with the list of delegates. How do I access a delegate at current index?</p>
]]></description><link>https://forum.qt.io/topic/11630/solved-pathview-accessing-delegate-at-current-index</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 23:31:54 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/11630.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Nov 2011 11:48:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] PathView: accessing delegate at current index on Thu, 24 Nov 2011 14:15:47 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the idea! It works now. Solved by adding additional property to the listModel, and then modifying it according to the current index of PathView:</p>
<p dir="auto">@onClicked: listModel.setProperty(pathview.currentIndex, "active", true)@</p>
]]></description><link>https://forum.qt.io/post/118094</link><guid isPermaLink="true">https://forum.qt.io/post/118094</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 24 Nov 2011 14:15:47 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] PathView: accessing delegate at current index on Thu, 24 Nov 2011 13:03:07 GMT]]></title><description><![CDATA[<p dir="auto">Should be easy to solve. Every delegate has access to it's index, and can access any other non-dynamic item in the scene by id. So, why don't you just put the index number that works as the "special" index as a property in an index somewhere, and let the delegates determine based on that if they are The Chosen One? Or, alternatively, you might simply make it a property of the model itself.</p>
]]></description><link>https://forum.qt.io/post/118076</link><guid isPermaLink="true">https://forum.qt.io/post/118076</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Thu, 24 Nov 2011 13:03:07 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] PathView: accessing delegate at current index on Thu, 24 Nov 2011 12:57:12 GMT]]></title><description><![CDATA[<p dir="auto">I have a carousel view implemented with PathView. Here is the example it is based on:<br />
<a href="http://developer.qt.nokia.com/wiki/Qt_Quick_Carousel" target="_blank" rel="noopener noreferrer nofollow ugc">http://developer.qt.nokia.com/wiki/Qt_Quick_Carousel</a></p>
<p dir="auto">The thing is that I need to make one of the items special by sending an event from outside of the PathView. I have a button which suppose to make a current item special when pressed. PathView provides me with the curentIndex, but it seems there is no way to access the current item itself. Or is there?</p>
]]></description><link>https://forum.qt.io/post/118075</link><guid isPermaLink="true">https://forum.qt.io/post/118075</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 24 Nov 2011 12:57:12 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] PathView: accessing delegate at current index on Thu, 24 Nov 2011 12:46:53 GMT]]></title><description><![CDATA[<p dir="auto">Question is: why would you need to? Sounds like you are trying to do something imperative, when you should be doing something declarative instead... But, I could very well be wrong, of course.</p>
]]></description><link>https://forum.qt.io/post/118069</link><guid isPermaLink="true">https://forum.qt.io/post/118069</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Thu, 24 Nov 2011 12:46:53 GMT</pubDate></item></channel></rss>