<?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[Intagrating SQLite with Qt Quick]]></title><description><![CDATA[<p dir="auto">I'm trying to include a SQLite database with QT Quick but I can't find any examples.</p>
<p dir="auto">Does anyone know of any example programs I can play with?</p>
]]></description><link>https://forum.qt.io/topic/27429/intagrating-sqlite-with-qt-quick</link><generator>RSS for Node</generator><lastBuildDate>Mon, 04 May 2026 05:13:29 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/27429.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 May 2013 18:24:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Intagrating SQLite with Qt Quick on Wed, 05 Jun 2013 06:56:33 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for the lately reply.<br />
You should set your parent item id to Test_id</p>
<p dir="auto">Like this:</p>
<p dir="auto">@<br />
Rectangle{<br />
id:"test_id"<br />
...<br />
Component.onComplated{<br />
test_id.state="your state"<br />
}<br />
}<br />
@</p>
<p dir="auto">in your demo,you should change Test_id.state="State1" to mouseArea1.state="State1"</p>
<p dir="auto">read QML states manual u may understand it</p>
]]></description><link>https://forum.qt.io/post/181639</link><guid isPermaLink="true">https://forum.qt.io/post/181639</guid><dc:creator><![CDATA[luoqiya]]></dc:creator><pubDate>Wed, 05 Jun 2013 06:56:33 GMT</pubDate></item><item><title><![CDATA[Reply to Intagrating SQLite with Qt Quick on Mon, 03 Jun 2013 16:59:20 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the help!<br />
I getting a syntax error though.</p>
<p dir="auto">!<a href="http://farm9.staticflickr.com/8545/8938019077_5c2dccb53c_o.jpg(image)" target="_blank" rel="noopener noreferrer nofollow ugc">http://farm9.staticflickr.com/8545/8938019077_5c2dccb53c_o.jpg(image)</a>!</p>
]]></description><link>https://forum.qt.io/post/181367</link><guid isPermaLink="true">https://forum.qt.io/post/181367</guid><dc:creator><![CDATA[dstudentx]]></dc:creator><pubDate>Mon, 03 Jun 2013 16:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to Intagrating SQLite with Qt Quick on Sat, 01 Jun 2013 02:48:12 GMT]]></title><description><![CDATA[<p dir="auto">@Component.onComplated{<br />
get_db();<br />
Test_id.state:"State1"<br />
}@<br />
u should set when to change your state.</p>
]]></description><link>https://forum.qt.io/post/181067</link><guid isPermaLink="true">https://forum.qt.io/post/181067</guid><dc:creator><![CDATA[luoqiya]]></dc:creator><pubDate>Sat, 01 Jun 2013 02:48:12 GMT</pubDate></item><item><title><![CDATA[Reply to Intagrating SQLite with Qt Quick on Fri, 31 May 2013 20:37:10 GMT]]></title><description><![CDATA[<p dir="auto">Thanks that helped me loads!<br />
I have a question the is related to the link you sent me; I posted it on stackoverflow but never got a response.</p>
<p dir="auto">in qtquick 2.0 I can read text from a database but I can't get it to show in in a specific state only in all states. how can I call my function reading in the database in a specific state for example 'state1'</p>
<p dir="auto">@Text {<br />
text: "?"<br />
anchors.horizontalCenter: parent.horizontalCenter<br />
function get_db() {<br />
var db = LocalStorage.openDatabaseSync("DB1", "1.0", "The Example QML SQL!", 1000000);<br />
db.transaction(<br />
function(tx) {<br />
tx.executeSql('CREATE TABLE IF NOT EXISTS Greeting(salutation TEXT, salutee TEXT)');<br />
for ( var z=0; z&lt;10; z++){<br />
// tx.executeSql('INSERT INTO Greeting VALUES(?, ?)', [ z, z ]);<br />
}<br />
//  tx.executeSql('INSERT INTO Greeting VALUES(?, ?)', [ 'hello', 'world' ]);<br />
var rs = tx.executeSql('SELECT * FROM Greeting');<br />
var r = ""<br />
for(var i = 0; i &lt; rs.rows.length; i++) {<br />
r += rs.rows.item(i).salutation + ", " + rs.rows.item(i).salutee + "\n"<br />
}<br />
text = r<br />
})}<br />
Component.onCompleted: get_db()<br />
}</p>
<p dir="auto">states: [</p>
<pre><code>State {
    name: "State1"
    PropertyChanges {
        target: mousearea1
        x: 608
        y: 1022
    }

    PropertyChanges {
        target: image5
        x: 760
        y: 980
    }

    PropertyChanges {
        target: image1
        x: 245
        y: 345
        width: 298
        height: 271
        fillMode: "PreserveAspectFit"
        source: "images/item.png"
        opacity: 1

    }

    PropertyChanges {
        target: mousearea2
        width: 130
        height: 190
        opacity: 1
          onClicked: page.state = 'base state'
    }

    PropertyChanges {
        target: image2
        x: 543
        y: 345
        width: 154
        height: 271
        fillMode: "PreserveAspectFit"
        source: "images/item.png"
        opacity: 1
    }
}
</code></pre>
<p dir="auto">]@</p>
]]></description><link>https://forum.qt.io/post/181042</link><guid isPermaLink="true">https://forum.qt.io/post/181042</guid><dc:creator><![CDATA[dstudentx]]></dc:creator><pubDate>Fri, 31 May 2013 20:37:10 GMT</pubDate></item><item><title><![CDATA[Reply to Intagrating SQLite with Qt Quick on Fri, 31 May 2013 00:13:51 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://qt.gitorious.org/qt/qtdeclarative/blobs/stable/examples/quick/localstorage/localstorage/hello.qml" target="_blank" rel="noopener noreferrer nofollow ugc">https://qt.gitorious.org/qt/qtdeclarative/blobs/stable/examples/quick/localstorage/localstorage/hello.qml</a></p>
<p dir="auto">Cheers,<br />
Chris.</p>
]]></description><link>https://forum.qt.io/post/180967</link><guid isPermaLink="true">https://forum.qt.io/post/180967</guid><dc:creator><![CDATA[chrisadams]]></dc:creator><pubDate>Fri, 31 May 2013 00:13:51 GMT</pubDate></item><item><title><![CDATA[Reply to Intagrating SQLite with Qt Quick on Thu, 30 May 2013 23:33:47 GMT]]></title><description><![CDATA[<p dir="auto">Thanks but I need it to be non c++</p>
]]></description><link>https://forum.qt.io/post/180964</link><guid isPermaLink="true">https://forum.qt.io/post/180964</guid><dc:creator><![CDATA[dstudentx]]></dc:creator><pubDate>Thu, 30 May 2013 23:33:47 GMT</pubDate></item><item><title><![CDATA[Reply to Intagrating SQLite with Qt Quick on Thu, 23 May 2013 03:54:57 GMT]]></title><description><![CDATA[<p dir="auto">There is example in yourInstall\Qt5.0.2\5.0.2\mingw47_32\examples\declarative\sqllocalstorage</p>
]]></description><link>https://forum.qt.io/post/180156</link><guid isPermaLink="true">https://forum.qt.io/post/180156</guid><dc:creator><![CDATA[luoqiya]]></dc:creator><pubDate>Thu, 23 May 2013 03:54:57 GMT</pubDate></item></channel></rss>