Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • [SOLVED] Qml Combobox delegate?

    qml combobox
    5
    0 Votes
    5 Posts
    7k Views
    T
    Ahhhhh! Thanks! I didn't know what textrole is for! THANKS cu mts
  • Qml common files

    4
    0 Votes
    4 Posts
    817 Views
    mrdebugM
    Perfect!
  • 0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    5 Posts
    2k Views
    p3c0P
    @themts Good find. Seems suitable for your requirement.
  • Listview on Multitouch Device

    listview multitouch
    7
    0 Votes
    7 Posts
    2k Views
    p3c0P
    @winkler3523 Good find. But it seems to be there from ages :) Vote it up.
  • QtMultimedia" is not installed in Qt 5.0.2 MinGW 32bit

    qt quick qtmultimedia mingw
    16
    0 Votes
    16 Posts
    6k Views
    SGaistS
    @sierdzio AFAIK you're right, it doesn't since it uses the GraphicsView framework. However I don't remember if it completely bypasses it if Qt's built with OpenGL support.
  • Drawing Line on MS Paint Style

    canvas qml
    6
    0 Votes
    6 Posts
    4k Views
    C
    Kimmo Lindholm wrote a very nice Paint app for the Jolla which is open source, and uses this technique (but it's far more complicated since it offers a bunch of different modes and features too): https://github.com/kimmoli/paint/blob/master/qml/pages/Paint.qml
  • Documentation of QML Debugging protocol

    qml debugging
    2
    0 Votes
    2 Posts
    924 Views
    C
    See https://qt.gitorious.org/qt/qtdeclarative/source/3f2eabc8d90c4ee535cb0a2500e033171e203537:src/plugins/qmltooling and in particular https://qt.gitorious.org/qt/qtdeclarative/source/3f2eabc8d90c4ee535cb0a2500e033171e203537:src/plugins/qmltooling/shared/qpacketprotocol.cpp
  • smooth animation

    animation smooth
    2
    0 Votes
    2 Posts
    1k Views
    V
    I'm experimenting a bit with QML as we speak, but classically using standard Qt4/Qt5 you would have an EventTimer() (specified by some msec timer update) and a Paint() function that you can override in your Draw class doing the screen update. (Actually another approach is possible as well) But basically, inside the Paint() update you would do the drawing & animation needed. QML may have something similar in updatePaintNode(). Hope that helps, -Vince
  • Moving contents on MouseArea hover

    qml qtquick qt 5.4 mouse
    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    OK, here are my suggestions: use Flickable's flick() method link. It should work better than your solution, be more fluid and natural-looking 1ms timer resolution is completely useless: QtQuick updates the screen (paints a new frame) every 16.6 ms to achieve constant 60 Hz refresh rate. So you are wasting time and CPU power by invoking it 16 times more often than the software can pain it ;-) I'd suggest setting it to at least 16ms, but in reality I would probably use 50-100ms and tweak it to look good using flick() method mentioned above
  • 0 Votes
    1 Posts
    674 Views
    No one has replied
  • Dynamic create and delete Object

    qml dynamic
    4
    0 Votes
    4 Posts
    2k Views
    sierdzioS
    Check with valgrind to be sure, but I think it is OK (use deleteLater() or destroy() method: link).
  • Serial problem , segmentation fault

    serial arduino signal sisegv
    10
    0 Votes
    10 Posts
    4k Views
    D
    Oh yeah :) ! Finally i have found the bug . The problem was the Load() func. it was before the ,,arduino = new QSerialPort ;" . Thanks for all of the help :) !!!
  • [SOLVED] import .js file in Qml without Resources

    9
    0 Votes
    9 Posts
    5k Views
    M
    I have similar problem. In my project, I cannot expose my main.qml file (must be binary & a part of exe). But the javascript file is user editable. Is this combination possible?
  • This topic is deleted!

    Locked
    1
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • QML Cheat Sheet

    5
    0 Votes
    5 Posts
    6k Views
    kenyobK
    We have just posted this QML Quick Reference cheatsheet to our blog. http://www.ics.com/blog/qml-quick-reference We hope it helps you.
  • Accessing QQmlListProperty as QVariants from C++

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • TextEdit words disappear on selection

    2
    0 Votes
    2 Posts
    491 Views
    p3c0P
    @ggeorge82 Seems like you have found a bug. Please report it here.
  • Capturing GPS location when using declarative camera

    gps camera
    1
    0 Votes
    1 Posts
    799 Views
    No one has replied
  • ListModel and item

    6
    0 Votes
    6 Posts
    1k Views
    mrdebugM
    Perfect!