Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Is there an API in QML similar to setMask() API of Qt?

    6
    0 Votes
    6 Posts
    4k Views
    J
    It is worth pointing out that meego has this feature built in: http://harmattan-dev.nokia.com/docs/library/html/qt-components/qt-components-meego-maskeditem.html And even if you are on a different platform, you can just grab the source code from here: http://qt.gitorious.org/qt-components/qt-components/blobs/master/src/meego/mdeclarativemaskeditem.h (.cpp) In Qt Quick 2, you could use a shader to achieve the same thing.
  • Qt Quick Desktop Components: Dial - step size

    4
    0 Votes
    4 Posts
    2k Views
    J
    I pushed a fix to the Dial control that adds a tickMarksEnabled property, just like in the Slider. Sorry for the confusion. Don't hesitate to report missing features like this on the bug tracker in the future. Mark as "Qt Quick Components"/desktop.
  • Shake function i qml

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QML Harmattan MainPage ToolBar Height

    3
    0 Votes
    3 Posts
    3k Views
    I
    Hi thanks for you answer, I changed my code and instead of a grid I use a flow layout and I works as I expected, thank you so much!
  • Showing status pane but not softkey areas

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 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