Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.1k Posts
  • [SOLVED] QML using QGLWidget as viewport not getting TouchEvents

    3
    0 Votes
    3 Posts
    3k Views
    A
    Modifying code in qgesturemanager.cpp function deliverEvents allows the gesture event to be delivered. The new code is invoked if existing methods produce a NULL target widget. The search only operates on gestures that have a hot spot. The search looks at all widgets for the best target widget that contains the hot spot. After that modification a target widget is found in deliverEvents and the gesture events that previously were not being delivered are processed. Not ideal to search all widgets, but its better than leaving the target widget null and eating a perfectly good gesture event.
  • What is QSpotify 1.0?

    2
    0 Votes
    2 Posts
    1k Views
    P
    you can get it from here. git://gitorious.org/qtify/qtify.git its a playground project by qt devs to show the power of qml
  • QML Keyboard for touch screen

    37
    0 Votes
    37 Posts
    50k Views
    D
    i know its pretty late, but i just stumbled upon colibri and i had (as rodrigob) quite a hard time to figure how to use clkeyboard together with a lineedit. But it is possible by letting the lineedit read the keyboard internal text. So basically the lineedit is just used to show a text which belongs to the keyboard itself! @CLLineEdit{ id: textInput text: keyboard.text } Rectangle{ height: 100 width: 200 color: "black" CLKeyboard{ id: keyboard anchors.fill: parent } } @
  • How add symbol for closing (deleting) "cross in circle" outside icon?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    3 Posts
    3k Views
    _
    no, i mean else things. but thank you for your answer! i mean i want create dragdown notification panel. as it was made in ios and adroid- so it place for a clock, unanswered calls and news. i want make absolutelly as ios drag-down information panel by qml. it functional named Notification center. [quote author="shav" date="1365665589"]Hi, _dmp If I understand you correctly you want to fire some action when user is scrolling content to up or down, right? If this true, you may use signals for this. Qt is based on slot-signal technology. It's looks like iOS Notification centre. Please read more about signals from this "link":http://qt-project.org/forums/viewthread/1730 or "here":http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-interactqmlfromcpp.html. skiped -[/quote]
  • Qml / Javascript XMLHttpRequest issues in Qt 5 beta 2

    3
    0 Votes
    3 Posts
    3k Views
    P
    Hi, At least here it is stated that the callback should not be denifed before calling "open" https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#Properties
  • 0 Votes
    3 Posts
    1k Views
    W
    It is duplicated with https://bugreports.qt-project.org/browse/QTBUG-29686
  • Is it actually possible to use a C++ QList as a model for a QML PathView?

    3
    0 Votes
    3 Posts
    3k Views
    T
    I got some help from a couple of experts on IRC (#qt-qml) last night and my example is working now. I've answered the StackOverflow question that I linked to above if anyone is interested.
  • PathView Using QAbstractListModel Determines Count Late

    3
    0 Votes
    3 Posts
    2k Views
    T
    Not sure if you're still interested, but I had a conversation with a couple of former Trolltech employees on IRC last night. They helped me with this and I've posted the answer to my StackOverflow question.
  • QML Loader and loaded item context. Is it a feature or a bug?

    6
    0 Votes
    6 Posts
    6k Views
    M
    This is exactly what http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-loader.html#using-a-loader-within-a-view-delegate tells about :) Moving the sub-delegate inside the parent delegate, or to a separate file, should make it work. With the Desktop Components example that was mentioned, it should be the same.
  • Qt3D Qt3DQuick not in Qt5 source

    8
    0 Votes
    8 Posts
    4k Views
    D
    [quote author="amund_l" date="1364392619"]Included in QtCreator 2.7 is the "OpenGL under QML":http://qt-project.org/doc/qt-5.0/qtquick/quick-scenegraph-openglunderqml.html. This might be what you are looking for. It let you explore the new feature where QML is redered on top of your OpenGL ES context, so you can merge your OpenGL and QtQuick UI. Pretty cool.[/quote] Well...apart from perspective, rotating in more then one direction, an ambitious model loader that calculates matrices like Jackson Pollock before it hands over to QGLAbstract scene which is even more liberal... Yeah....Polys are for chumps :) https://www.shadertoy.com/
  • 0 Votes
    2 Posts
    776 Views
    J
    I got it, guys. When we set @width: rect.width * 0.5;@ is happening a binding. Not an assignment. What I should do to assign the value: @Component.onCompleted: { width = rect.width * 0.5; }@
  • QtQuickView doesn't work inside of a QtCreator plugin

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QML2 Books / Tutorials?

    10
    0 Votes
    10 Posts
    4k Views
    U
    In the future perhaps, hopefully, for 5.0 and 5.0.1 doc building failed for me (and not just me) and only HTML docs were generated, and worse than the online version - the missing snippets are still missing, plus there is entire articles that are missing too.
  • How to show a widget by WId in Qt Quick 2 (Qt 5.0.1)

    8
    0 Votes
    8 Posts
    4k Views
    P
    Hi All, everything works fine in 5.1! Thanks everybody. If somebody need help please let me know...
  • Accessing blind data in a base object via external view objects

    1
    0 Votes
    1 Posts
    878 Views
    No one has replied
  • 0 Votes
    3 Posts
    1k Views
    N
    Ah, sorry for not being clear about my intentions. I'm trying to build an app using Ubuntu's new QML-based SDK, which has developers building app in pure QML. An example can be found "here":http://developer.ubuntu.com/resources/app-developer-cookbook/mobile/currency-converter-phone-app/. I'd like to build an app that interfaces with a third-party API, and I'd like to build that particular piece of functionality into a separate library.
  • [solved] How do I attach properties to a Component?

    4
    0 Votes
    4 Posts
    4k Views
    K
    Thank you for your input Chris, the point about this post, as hinted in the title, is to pass information from the place where the Loader Element is used to instantiate an arbitrary object, to the created object. The information passed, serves no deeper purpose then to be passed. It seems I've chosen a confusing example. Sorry about that. Maybe this will clarify: main.qml @import QtQuick 2.0 Rectangle { width: 360; height: 360 color: "aliceblue" Rectangle { anchors.centerIn: parent width: 300; height: 300 border {color: "black"; width: 1 } Container { anchors.margins: 1 aThing: Rectangle { width: 200; height: 200; border {color: "black"; width: 1 } Text { anchors.fill: parent; anchors.margins: 3; text: passedInformation wrapMode: Text.WordWrap } } } } } @ Container.qml: @import QtQuick 2.0 Rectangle { id: root property Component aThing: Item { } anchors.fill: parent color: "lightsteelblue" Loader { property string passedInformation: "some arbitrary information" anchors.centerIn: parent sourceComponent: aThing } } @
  • Image alignment does not appear to work?

    1
    0 Votes
    1 Posts
    696 Views
    No one has replied
  • Problems with qml models to instantiate components

    6
    0 Votes
    6 Posts
    3k Views
    O
    Okay i solved the problem, see this for an explanation i wrote regarding it (applies to qt quick 1 / qt 4.8 at the time). [quote]There appears to be a problem in Qt when trying to bind to model data that you are unsure the existence of. When binding normally, such as name: model.data , if model.data is undefined then the ‘name’ property will be overwritten with ‘undefined’, as opposed to not being bound to, where it would be free to supply its own default value / logic. A way around this is to use a Binding element, for example: @Binding { target: tempButton property: "displayString" value: model.displayString when: true }@ For some reason, even if you specify to always bind (like in the example above – when: true), an undefined value will not be bound. This is almost what you might expect as default binding behavior but is inconsistent with the previous method, where the property would get bound to undefined data. Even with the ‘when’ omitted, it is still more awkward (and potentially slower?) to bind in this way, as you have to specify an id for the object that will be the target of the binding. You cannot just specify the Binding element’s parent as a target, as this doesn’t appear to work for some reason – you have to specifically give the target an id.[/quote]