Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Qml + c++

    10
    0 Votes
    10 Posts
    8k Views
    A
    [quote author="nicola1" date="1285657479"]I added Q_OBJECT and now is working, Thanks. I should understand because i need Q_OBJECT when y class inherit from QSqlTableModel. [/quote] "http://doc.trolltech.com/4.7/qobject.html#Q_OBJECT":http://doc.trolltech.com/4.7/qobject.html#Q_OBJECT
  • Extending QtCreator's Syntax Highlighting with a Plugin

    4
    0 Votes
    4 Posts
    4k Views
    T
    Have you tried using a snapshot of Qt Creator? The QML handling has seen much work, maybe that already works there already (I think it does, but I am not 100% sure).
  • C++ and QML : Using QDeclarativeEngine instead of QDeclarativeView

    3
    0 Votes
    3 Posts
    5k Views
    Y
    Thanks !
  • [Moved] How to deploy a QML and C++ app?

    2
    0 Votes
    2 Posts
    3k Views
    I
    Try to watch the event log. In windows 7 it has been improved and it may point you to what missed.
  • Qt.playSound

    4
    0 Votes
    4 Posts
    4k Views
    M
    You'll need to install Mobility (see "here":http://qt.nokia.com/products/appdev/add-on-products/catalog/4/new-qt-apis/mobility or "here":http://qt.nokia.com/developer/new-qt-apis for the downloads). You can then use the elements as described in the documentation -- for example, here's how you could use the "SoundEffect element":http://doc.qt.nokia.com/qtmobility-1.0/qml-soundeffect.html.
  • Qml + Maemo5

    4
    0 Votes
    4 Posts
    3k Views
    A
    Oh, ok. If you use the system palette it is expected. Nice you found that =)
  • Flickable problem: Hide un-flickable area

    3
    0 Votes
    3 Posts
    2k Views
    2
    Thanks archerabi. I searched through documentation all day without any luck.
  • Unable to compile when using QtDeclarative

    11
    0 Votes
    11 Posts
    7k Views
    D
    Perhaps it wasn't included in the release. If you get the tar ball from gitorious it probably works. "http://qt.gitorious.org/qt/qt/archive-tarball/4.7":http://qt.gitorious.org/qt/qt/archive-tarball/4.7
  • Delete QML file from creator

    6
    0 Votes
    6 Posts
    4k Views
    2
    I just filled the bug: "here":http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2436
  • Multiple declarativeviews

    2
    0 Votes
    2 Posts
    2k Views
    M
    Have you seen the photoviewer demo (in demos/declarative/photoviewer)? It uses the following techniques, which should be relevant to what you are trying to accomplish: multiple layers of Views within delegates packages, which allow smooth transitions of items from one view to another For example, you might have an empty PathView of a single point sitting in the corner, which gets filled with the contents of the original circle PathView when transitioning to the next circle PathView. Packages can sometimes be hard to get started with, so I'd suggest also looking at the simple example in examples/declarative/modelviews/package.
  • QML ListView

    3
    0 Votes
    3 Posts
    4k Views
    A
    thanks,thats exactly what i am looking for.let me give it a shot and see.
  • IcecastRadio - Qt-Widget/Qt-Quick example Icecast player

    13
    1 Votes
    13 Posts
    10k Views
    M
    Bwt when start play radio station. It will be wonderful to display something like a progress. Because some radio streams take a little bit more time to start play.
  • [Solved] event.accepted stops JavaScript from processing the next line

    3
    0 Votes
    3 Posts
    3k Views
    ?
    It happens sometimes and its ok. We just tag it as solved :)
  • TextEdit: modifying selection format (weight, color..)

    5
    0 Votes
    5 Posts
    4k Views
    M
    TextEdit is one of the core QML elements, so I've moved this to "QTBUG-13575":http://bugreports.qt.nokia.com/browse/QTBUG-13575. Thanks for filing the report!
  • 0 Votes
    3 Posts
    3k Views
    S
    Hi infidel, thanks a lot for your solutions! both works :)
  • Jerky animation : no constant refresh rate

    3
    0 Votes
    3 Posts
    5k Views
    Q
    If I do this : @import Qt 4.7 Rectangle { width:1920 height:1080 anchors.fill:parent color : "black" Timer { id :time interval: 10; running: true; repeat: true onTriggered:{ logo.y=logo.y+10;if(logo.y>800) logo.y=0;} } Rectangle { id: logo x: 264 y: -200 width : 40 height :40 color :"red" Component.onCompleted :time.start(); } } @ If you launch qmlviewer with -opengl it's perfectly smooth ... If you do the same with an animation you have a jerky movement .... I don't know if the only way is to hack qt to change the 16 ms timer resolution ?
  • [Solved] C++ Signals for QML Layer

    7
    0 Votes
    7 Posts
    10k Views
    S
    Thanks for the hint. I didn't use QtScript yet maybe I should take a look at it. ^^
  • QImage::pixel() in QML

    5
    0 Votes
    5 Posts
    7k Views
    G
    The code I had write : @import Qt 4.7 Item { width: 256 height: 256 function updateSelectedColor() { ColorPickerContext.selected_red = (1 - (cursor.y / height)) * (1 + (cursor.x / width) * (main_red - 1)) ColorPickerContext.selected_green = (1 - (cursor.y / height)) * (1 + (cursor.x / width) * (main_green - 1)) ColorPickerContext.selected_blue = (1 - (cursor.y / height)) * (1 + (cursor.x / width) * (main_blue - 1)) } Rectangle { width: parent.height height: parent.width transform: Rotation { angle: 90} x: parent.width y: 0 gradient: Gradient { GradientStop { position: 0.0; color: Qt.rgba(main_red, main_green, main_blue, 1)} GradientStop { position: 1.0; color: "white" } } } Rectangle { anchors.fill: parent gradient: Gradient { GradientStop { position: 0.0; color: Qt.rgba(0, 0, 0, 0) } GradientStop { position: 1.0; color: Qt.rgba(0, 0, 0, 1) } } } Image { id: cursor x: width/2 y: height/2 source: "cursor.png" } MouseArea { acceptedButtons: Qt.LeftButton anchors.fill: parent onPressed: { cursor.x = mouseX - 4 cursor.y = mouseY - 4 updateSelectedColor() } onPositionChanged: { cursor.x = mouseX - 4 cursor.y = mouseY - 4 updateSelectedColor() } } }@ I'm not expert in QML, so if someone have critics, I'm interessed.
  • GridView : change state of an item

    7
    0 Votes
    7 Posts
    6k Views
    M
    Hmm, you are right, it is more complicated if you want clicking the empty space within the grid to deselect. I've edited anselmolsm's example to show one way to support this, along with a note on why the fix works. Note that the fix uses an undocumented property (flickableChildren) in order to have the MouseArea become a child of the contentItem.
  • Paint with Qml

    16
    0 Votes
    16 Posts
    12k Views
    Y
    If i found time, i'll help you. But actually it's just for fun. It's to study qml and i'm not sure canvas api interest people. Anymore, i write another plugin with another approach with a begin of webGl api support. I think it's better to develop different approach and merge later. "If you want look new Video":http://www.developpez.net/forums/d906429-2/c-cpp/bibliotheques/qt/qextend-sortie-v0-0-1-a/#post5459209