<?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[QListView - marked Items]]></title><description><![CDATA[<p dir="auto">Hi! :-)</p>
<p dir="auto">In my program I have a QListView with some content from a SQLite Database. Now I want to enter the list view and display the content on my main form. This is my problem: When I enter the list view with the mouse click everythink works fine, but I also want to use my keyboard cursor buttons (up and down) to navigate through the content of the list view, the navigations works fine, but there is no update from the databse.. Now I use the clicked(...)-Slot for that and I have also tried the other slots, but nothing happens. First I thought the entered(...)-Slot is the correct way but it isn't. Is there any property of the list view I can use?</p>
<p dir="auto">Thank you :-)</p>
]]></description><link>https://forum.qt.io/topic/142346/qlistview-marked-items</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 12:51:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/142346.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Jan 2023 12:02:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QListView - marked Items on Fri, 27 Jan 2023 18:03:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">thank you for your answer, I was wrong with the term slot, I mean signal.</p>
<p dir="auto">I will try it on your suggested way.</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.qt.io/post/745445</link><guid isPermaLink="true">https://forum.qt.io/post/745445</guid><dc:creator><![CDATA[buzz_lightzyear]]></dc:creator><pubDate>Fri, 27 Jan 2023 18:03:11 GMT</pubDate></item><item><title><![CDATA[Reply to QListView - marked Items on Sat, 21 Jan 2023 19:07:08 GMT]]></title><description><![CDATA[<p dir="auto">There may be some terminology confusion. Signals are emitted by objects when something happens. Connect a signal to a slot defined by the application or an instance of a framework provided type.</p>
<p dir="auto"><a href="https://doc.qt.io/qt-6/qitemselectionmodel.html#currentChanged" target="_blank" rel="noopener noreferrer nofollow ugc">QItemSelectionModel::currentChanged(const QModelIndex &amp;current, const QModelIndex &amp;previous)</a> reports when the "current" item in a view changes. Use <a href="https://doc.qt.io/qt-6/qabstractitemview.html#selectionModel" target="_blank" rel="noopener noreferrer nofollow ugc">QAbstractItemView::selectionModel()</a> to get the selection model the view is using.</p>
<p dir="auto">An alternative is to override the <a href="https://doc.qt.io/qt-6/qabstractitemview.html#currentChanged" target="_blank" rel="noopener noreferrer nofollow ugc">QAbstractItemView::currentChanged</a> slot by inheriting from QListView. If this route is taken, don't forget to call the parent class implementation.</p>
]]></description><link>https://forum.qt.io/post/744704</link><guid isPermaLink="true">https://forum.qt.io/post/744704</guid><dc:creator><![CDATA[jeremy_k]]></dc:creator><pubDate>Sat, 21 Jan 2023 19:07:08 GMT</pubDate></item></channel></rss>