Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Audio Stalled Status problem

    1
    0 Votes
    1 Posts
    999 Views
    No one has replied
  • QML Backward Compatibility

    2
    0 Votes
    2 Posts
    2k Views
    sierdzioS
    Not really... in QML code you import either 2.0 OR 1.0. Also, the classes that display QML in C++ are different. So it's probably not possible unless you are prepared to use an awful lot of ifdefs in your code. When I was in a transition period between Qt4 and 5 in my project, I just used a script I have written that did most of the changes automatically.
  • Qml/Js/Vm vs. Upgraded C++ GUI API with Bindings

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    T
    While I understand your motivation and goals, I don't think these polls get you anywhere closer to where you want to go. The only serious option I can identify is to persuade developers and maintainers via the mailing-list. As far as I can see, you are already working on this. I don't see how this poll makes a big difference to the last one, you can't keep polling until you get the result you want to see. Even if you managed to post an unbiased poll, which is an art in itself. And don't get me wrong, I don't even have a stake in how Qt is developed: I'm not using it. :P Conclusion: I'm closing this thread since it won't add anything and duplicates other efforts.
  • Qt Quick IVI demo is not working.

    2
    0 Votes
    2 Posts
    2k Views
    R
    Any one found any solution or any idea than please give any idea ...Thnx in advance !!
  • Automatic update of listView and c++ model

    8
    0 Votes
    8 Posts
    3k Views
    L
    Great. You're welcome!
  • [solved] import com.nokia.symbian 1.1 underlined red

    3
    0 Votes
    3 Posts
    2k Views
    F
    it works thanks
  • [solved]How to repaint a Qt component from inside QML??

    2
    0 Votes
    2 Posts
    9k Views
    X
    Ok problem solved. I added a slot to my Qt component, and to the qml component which I drag a signal which gets emitted everytime I drag this item so I'm able to call the slot of the Qt component which will call the update() method to repaint itself.
  • QML - wait and fire...

    3
    0 Votes
    3 Posts
    7k Views
    C
    Explicit support for this use-case for functions/slots other than animations is currently under development (see https://codereview.qt-project.org/#change,11033 ). Hopefully it'll make it into 5.0 but no promises. Edit: fixed link to change set; Andre
  • Find the *current* number of delegate in the ListView

    5
    0 Votes
    5 Posts
    3k Views
    F
    An easy way to see the number of the delegates that are alive at a given time is the following: @ import QtQuick 1.1 Rectangle { width: 300 height: 200 color: "green" property int numberOfVisibleItems:0 ListModel { id: myListModel objectName: "myListModel" ListElement { name: "Bill Smith" number: "555 3264" } ListElement { name: "John Brown" number: "555 8426" } ListElement { name: "Sam Wise" number: "555 0473" } ListElement { name: "A" number: "555 3264" } ListElement { name: "B" number: "555 8426" } ListElement { name: "C" number: "555 0473" } ListElement { name: "D" number: "555 3264" } ListElement { name: "E" number: "555 8426" } ListElement { name: "F" number: "555 0473" } } ListView { id: myListV objectName: "myListV" anchors.fill: parent; model: myListModel delegate: Rectangle{ objectName: "myDelegate" width: parent.width;height: myListV.height / 3 border.color: "black" color: "yellow"; Text { id: myText text: name + ": " + number color: "red" } Component.onCompleted: numberOfVisibleItems++; Component.onDestruction: numberOfVisibleItems--; } } onNumberOfVisibleItemsChanged: console.log("Visible items: " + numberOfVisibleItems) } @ Regarding your specific problem with the blank delegate i have no idea at the moment.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Unity3d plugin in qml webview

    3
    0 Votes
    3 Posts
    6k Views
    H
    This still does not work for Qt 4.8.2 on Windows7. The unity3d plugin works with QWebView but not in QGraphicsWebView or in a QML WebView. The plugin uses three stacked windows on top of the web page and I suspect that something in the QGraphicsView prevents the creation of those windows. I have reported this in the Qt bug tracker (https://bugreports.qt-project.org/browse/QTBUG-25705).
  • 0 Votes
    4 Posts
    2k Views
    X
    Ok I found out what I've forgotten. I had to add the following to the qml file: @ RClock { id: myClock } @ And in RClock I added Q_PROPERTY's for each value. And as you mentioned the qmlRegisterType() method was also needed. Now everything works fine.
  • Internet status on all modes

    2
    0 Votes
    2 Posts
    1k Views
    F
    there seems to be no answer to this one, maybe there is another way of checking if internet connection exists on app startup?
  • Loader element and CommonDialog element

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Hour Glass stuck when loading qml pages to loader

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Dynamically Loading Components

    3
    0 Votes
    3 Posts
    2k Views
    B
    Good catch, thanks. But that doesn't seem to fix anything. I have discovered that adding this in main.cpp (after loading the component) will make it work: @ view->engine()->rootContext()->setContextProperty("DelegateView", DelegateView); @ is that supposed to be necessary? I'm fine with that if it is, just want to make sure that I'm using the API as intended, you know, being thorough and all that other good practice type stuff :-)
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • How to add a url to a button in qml?

    3
    0 Votes
    3 Posts
    6k Views
    N
    Hi, I have tried your 1 option where this is the code i have used in my code. @ QWebView *view = new QWebView(); view->load(QUrl("http://www.naukri.com")); view->show();@ As a function call from QML.I can open the link fully in a separate widget and not inside my application.And there is only exit button which is closing the application. So what i need is to open the web url inside my application with back button which manipulates to home page. Thanks for any Replies!
  • 0 Votes
    3 Posts
    2k Views
    A
    The the problem is with lists that have delagates with mousearea. Isnt there somthing in QML like QTWidget Qt::WA_AcceptTouchEvents ?
  • Model View of QList<QObject*>of QAbstractListModel

    3
    0 Votes
    3 Posts
    2k Views
    M
    No, there isn't QSharedPointer wrapped QObjects direct support in QML, as I know.