Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Adding values to a variant holding map of key-value pairs

    3
    0 Votes
    3 Posts
    3k Views
    F
    Thanks. In this case I think I'm ok with just iterating through my list (it's not the classical property map usage) BUT I will definitely remember the QDeclarativePropertyMap for another time.
  • 0 Votes
    3 Posts
    2k Views
    S
    @hoanghua - I just stopped using XMLListModel. Now I use a ListModel and refresh it by removing all entries and populating with output from XmlHttpRequest through JavaScript. Painful to parse responseXML in JavaScript but it is much better than continuously leaking memory.
  • ListModel from SQL. Relation one to many

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • How to lock the screen orientaion on nokia n950?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Harmattan Qt + QML application that auto rotates

    8
    0 Votes
    8 Posts
    4k Views
    I
    This is what I'm getting, hope someone can help! Thanks! !http://iktwo.wikidot.com/local--files/start/er1.png(Test 1)! !http://iktwo.wikidot.com/local--files/start/er2.png(Test 2)!
  • How to find out the original Component name during runtime?

    6
    0 Votes
    6 Posts
    3k Views
    M
    Hi Bernhard, Looks fine :-) . It's always good to describe your use case (which you did), as that allows for the possibility of the team suggesting or implementing alternative solutions. Regards, Michael
  • 0 Votes
    7 Posts
    14k Views
    M
    Andre, nikrools, Could the QML environment be improved to support this use case better (and if so, any suggestions?), or do you feel like the current solution you are using is "good enough"? Thanks, Michael
  • Dynamic creation of a "standard" QML object (not from my own .qml file)

    7
    0 Votes
    7 Posts
    3k Views
    F
    I ended up using a wrapper QML file anyway for other needs, but I will actually need to update it now to another component. So I think I'll try this new method too. Thanks!
  • Com.nokia.symbian package not found

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QML Image in a ListView

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Including a text file in qml

    5
    0 Votes
    5 Posts
    3k Views
    M
    okay. i based my actions on your answer. i stored my contents inside a text file (our professor's requiring us to do so) i made this code @import QtQuick 1.0 import com.nokia.symbian 1.0 Page { id: lolPage objectName: "lolPage" ListModel { id: jokeModel ListElement{ joke: Qt.resolvedUrl(jokes.text = TextFile.readLine()) } Component{ id: jokeDelegate ListItem{ height: 200 Column{ Text{ id: textJoke text: joke color: "black" font.pixelSize: 20 } } } } ListView{ anchors.fill: parent model: jokeModel delegate: jokeDelegate } }@ what am i doing wrong here? i do not know how to call and display the contents of an external file using ListModel.
  • Is it possible to create documentation for QML?

    6
    0 Votes
    6 Posts
    6k Views
    T
    [quote author="Alicemirror" date="1316071074"] doxygen can't manage QML in a decent way. [/quote] Can doxygen create documentation for qml? [quote author="sigrid" date="1315917451"] Also, note that there will be a qml parser in qdoc3 in Qt 5. It is work in progress, but it is coming.[/quote] What do you mean?Will this parser create automatically documentation for QML if the right comments exist? Can you provide me please a link to it? Also in order qdoc3 to work does it require the project to use qmake? thanks
  • Draft of i18n HowTo focusing on Qt Quick, Qt SDK & Transifex

    9
    0 Votes
    9 Posts
    7k Views
    N
    No worries! I probably stressed the importance of translating the app name more than it's worth :) My first two N9 apps were designed to look like built-in applications that shipped with the phone, therefore it was important to me, however an 'definitely third-party' app wouldn't need it. And using TrIds from the beginning means that if you do decide to localise the app name then the largest bulk of work is already done. Glad I could help in any way -- I think I'll write an article on my blog regarding the rest of the post, simply because I figured it out after a lot of trial and error and it would be good to save those who are interested the hassle. Nice work on the tutorial, looking forward to seeing the final!
  • [Solved] Clicking QPushButtons with icons inside

    2
    0 Votes
    2 Posts
    3k Views
    EddyE
    Did you have a look at "stylesheets":http://doc.qt.nokia.com/4.8-snapshot/stylesheet-examples.html#customizing-qpushbutton? It is possible to make the appearance different depending on the clicked state using stylesheets. Edit : Here is a "similar thread":http://developer.qt.nokia.com/forums/viewthread/867 You could find similar topics yourself using the tag system on the right of your screen. ;)
  • 0 Votes
    14 Posts
    7k Views
    M
    Hi nightroad, What's the property type for the icon property? I'm guessing variant, if you are getting this warning? If that is the case, changing the property type to string or url should fix the issue (assuming you are able to change the component definition). Regards, Michael
  • Bug on Text element

    3
    0 Votes
    3 Posts
    2k Views
    H
    full page qml code as requested :-) @import QtQuick 1.1 import com.nokia.meego 1.0 Page { tools: commonTools Text { id: label anchors.centerIn: parent text: qsTr("Hello the world!") width: 35 wrapMode: Text.Wrap visible: false color: "gray" font.underline: true // textFormat: Text.RichText } Button{ anchors { horizontalCenter: parent.horizontalCenter top: label.bottom topMargin: 10 } text: qsTr("Click here!") onClicked: { label.visible = true } } }@
  • [Solved] Objects not showing up in full screen mode

    5
    0 Votes
    5 Posts
    3k Views
    G
    You're welcome. Please make sure to put [Solved] in front of the topic. Just hit the edit link right to your original post and adjust the title.
  • Memory usage of Meego Component

    2
    0 Votes
    2 Posts
    2k Views
    H
    just updated N950 to latest beta2 firmware and SDK (via SDK maintenance) and do not see this issue anymore. Just don't know which update is the actual helper here though :-P
  • 0 Votes
    8 Posts
    7k Views
    D
    Yes, but the fact is you have no protections of having two differents objects with the same objectName, which could be troubleSome. After some work in QML, i find it not that much annoying, since the most important things are done in C++ side, except displaying, oeuf corse. So.... This is perhaps the time to close this post ;)
  • Contact list example doesn't work as expected

    3
    0 Votes
    3 Posts
    3k Views
    D
    Yes! It worked!! Thanks a lot Michael, i just sent a reply about the issue at https://bugreports.qt.nokia.com/browse/QTBUG-21855 Best Regards!