Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • [solved] Strange signals behavior with PathView ?

    2
    0 Votes
    2 Posts
    4k Views
    D
    currentItem was not initialized
  • FingerPaint App - QTouchEvent example

    7
    0 Votes
    7 Posts
    7k Views
    M
    [quote author="chetankjain" date="1283405899"]not sure eraseRect can help here, you will have to repaint that rect from the original image, there may be accuracy issue as tskd has already tried[/quote] Right, good point. I was assuming the image was just a plain white fill. Thanks for the clarification. Michael
  • Suggestions for Qt Quick blog / screen-cast topics

    15
    0 Votes
    15 Posts
    9k Views
    S
    I agree with you guys... My main objective is to build apps in C++ using QML as visual layer and it works pretty well yet. But especially the singal or method interface between both is a bit difficult. So I would recommend it when you provide some more advanced tutorials in this topic. "Tips and tricks for making your QML app fast" sounds interesting too.
  • Qml or c++ or both

    9
    0 Votes
    9 Posts
    9k Views
    D
    mario, yeah, I've uploaded this example to our lug server and you can download it "here":http://dl.yarlug.org/devel/Qt/qmlTreeModel.tar.gz .
  • ListView and changes in model

    6
    0 Votes
    6 Posts
    9k Views
    A
    whenever that data in the model changes make sure to call dataChanged() in the model.This will update the listView.
  • XMLHttpRequest and cookies ?

    4
    0 Votes
    4 Posts
    7k Views
    M
    Hi, If these things are working correctly with other (e.g. webkit) xmlhttprequest implementations, then it is likely a bug in the QML implementation. Is it possible to provide an example or specific instructions to reproduce in the "bugtracker":http://bugreports.qt.nokia.com, so we can further track this down?
  • Strange behavior on PathView

    10
    0 Votes
    10 Posts
    5k Views
    M
    It's unlikely that it will appear in 4.7.0 at this point -- most likely 4.7.1 .
  • Accessing the positions of delegates

    6
    0 Votes
    6 Posts
    3k Views
    G
    Hmm, I see. Thank you very much
  • QML/3D saw this new video on youtube

    4
    0 Votes
    4 Posts
    4k Views
    M
    There is also an associated "blog post":http://labs.trolltech.com/blogs/2010/08/10/qml3d-demo/ available on Qt Labs.
  • Unable to load gif file in QImage

    7
    0 Votes
    7 Posts
    8k Views
    S
    After reading the documentation again, I figured out that it should be the decoration role and not the display role for the gif to render.
  • How to implement a QAction type in QML?

    2
    0 Votes
    2 Posts
    4k Views
    M
    In qdeclarativeitemsmodule.cpp, QAction is registered as @qmlRegisterType<QAction>();@ This type of registration does not make the class available for instantion in QML as an element. There are (at least) two pieces missing: QAction doesn't have a default constructor (see requirement "here":http://doc.qt.nokia.com/4.7-snapshot/qml-extending.html#adding-types) registration would need to be done via qmlRegisterType<QAction>("Qt",4,7,"Action"); One option might be for you to subclass QAction, provide a default constructor, and then register the type yourself, in a QML plugin. e.g. @qmlRegisterType<QAction>("MyComponents",1,0,"Action");@ and then @import Qt 4.7 import MyComponents 1.0 as Extras Item { Extras.Action { ... } } @ Regards, Michael
  • The Ultimate DevDays QtQuick Guide

    4
    0 Votes
    4 Posts
    4k Views
    H
    @mario, this is a while out in the future, but check out "http://labs.trolltech.com/blogs/2010/05/18/a-qt-scenegraph/":http://labs.trolltech.com/blogs/2010/05/18/a-qt-scenegraph/
  • QML objects accesible in QtScript?

    3
    0 Votes
    3 Posts
    5k Views
    M
    I don't think the model above can be done, but even it were possible it's not really a good fit for how QML was designed, and I think you'll lose a lot (if not all) of the advantages of QML in trying to develop this way (for example object.property = foo.bar in javascript performs an assignment, and doesn't establish a binding). That said, you should still be able to code application logic in script -- see for example the samegame or calculator demos in which all of the logic is implemented in script. The script will need to be coded in a "QML friendly" way though; for example you'll need to use the "dynamic object management":http://doc.qt.nokia.com/4.7-snapshot/qdeclarativedynamicobjects.html functionality provided by QML.
  • Alternating background color for ListViews

    12
    0 Votes
    12 Posts
    25k Views
    M
    [quote author="mario" date="1280820453"]@mbasser: What version of Qt are you using? I can't make it work on the beta 1 release. Well, maybe it's time to update to beta 2 anyway. [/quote] I'm using HEAD of the qt-qml staging branch. contentItem was introduced in change 9d6ccfea89ae99b747f70ece71185868f189d0f9 (June 24) -- I'm not sure if it is in beta2; if not it will definitely be in the next release candidate. Regards, Michael
  • How to create a multi-view application?

    8
    0 Votes
    8 Posts
    10k Views
    G
    That's great! Thanks for both.
  • Using XMLHttpRequest in QML when behind a proxy

    4
    0 Votes
    4 Posts
    6k Views
    B
    There is a special factory QDeclarativeNetworkAccessManagerFactory to create a network access manager that should be used when accessing the network from QML. The manager created is then made known to the declarative engine by QDeclarativeEngine::setNetworkAccessManagerFactory(), as PixelQ stated already.
  • "Unselect" current item in ListView

    6
    0 Votes
    6 Posts
    7k Views
    M
    [quote author="aviral" date="1280731394"]how about trying on getting the selected item in list view and then selectedItem->setSelection() for required operation.[/quote] But I don't think I can do that in QML?
  • Passing structured data between C++ and QML/JavaScript

    2
    0 Votes
    2 Posts
    11k Views
    M
    Hi, The "Exposing Data" section of "http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html":http://doc.qt.nokia.com/4.7-snapshot/qtbinding.html gives an explanation of several recommended ways of passing data between C++ and QML. Regards, Michael
  • QML in C++ App error

    3
    0 Votes
    3 Posts
    7k Views
    S
    Oh thanks the "QT += declarative" statement was missing in my .pro file. I know this is a greenhorn mistake but sometime I'll get even this ; )
  • Qt Quick for multimedia

    3
    0 Votes
    3 Posts
    3k Views
    S
    Ok thank you thats what I'm searching for.