Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.5k Posts
  • Qt Quick Controls: Tool Panel??

    5
    0 Votes
    5 Posts
    1k Views
    N
    Yep, thx anyway.
  • [solved] porting Nokia apps to Qt5: Qt Quick Components and PageStack?

    12
    0 Votes
    12 Posts
    7k Views
    R
    p.s. Might be worth mentioning, in Qt4 (Qt Quick 1) QtCreator added qmlapplicationviewer to start up the gui, with @QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());@ put into main.cpp. QtQuick.Controls 1.0 needs QtQuick 2, which in turn needs qtquick2applicationviewer rather than qmlapplicationviewer, e.g. @QScopedPointer<QtQuick2ApplicationViewer> viewer(new QtQuick2ApplicationViewer());@ But this actually conflicts with ApplicationWindow. Both ApplicationWindow and QtQuick2ApplicationViewer create a root window, so there is conflict over which window is to be used. Instead, to use ApplicationWindow, in main.cpp we should use QQmlApplicationEngine instead of QtQuick2ApplicationViewer, e.g. @QScopedPointer<QQmlApplicationEngine> engine(new QQmlApplicationEngine());@ followed by @ engine->load(QUrl("qrc:/qml/main.qml")); QObject *topLevel = engine->rootObjects().value(0); QQuickWindow *window = qobject_cast<QQuickWindow *>(topLevel); window->show();@ instead of @viewer->setSource(QUrl("qrc:/qml/main.qml")); viewer->show();@
  • Qt5 QML/C++ integration

    6
    0 Votes
    6 Posts
    7k Views
    sierdzioS
    Qt documentation has a great entry on signals and slots, just read it ;) In general, a slot is just a standard C++ method, but it has some additional features: it can be invoked through meta object system (QObject::incokeMethod()), signals can be connected to it, and it can use the QObject::sender() meta information (although it's pretty dangerous). Another benefit is that it can be invoked indirectly (Qt::QueuedConnection), which helps greatly in making asynchronous APIs, fluid GUIs and safe communication with threads.
  • Hiding mouse cursor in QML, changed in 5.1?

    2
    0 Votes
    2 Posts
    2k Views
    G
    Found it! @export QT_QPA_EGLFS_HIDECURSOR=1@
  • QtQuick and multiple windows

    1
    0 Votes
    1 Posts
    606 Views
    No one has replied
  • Get rid of 'thousand separator' in SpinBox

    7
    0 Votes
    7 Posts
    2k Views
    D
    Thanks Jens, Your replys always help me a lot!
  • [SOLVED] QtQuick Controls, TabView title color and Button text color

    6
    0 Votes
    6 Posts
    2k Views
    J
    Entirely correct. Also note that at least for button, you could also do it like this: @ Button { width: 100 Label { anchors.centerIn: parent text: "hello" color: "red" } } @
  • [SOLVED] Seek documentation reference for calling C++ from QML

    13
    0 Votes
    13 Posts
    5k Views
    B
    Torgeir, you must be a mind reader. After seeing the advice of JKSH I've been thinking about how to implement a collection of mass points (perhaps dozens, but not 10K). You brought up the previously-unknown -- to me -- item "Repeater". Perhaps I should retitle the posting as "[SOLVED -- even better]". Thanks.
  • 0 Votes
    6 Posts
    2k Views
    D
    Sorry, as you can see, when I upgraded to 5.1 and created new projects it went away. I really did not have time to work out why and it has not happened since. Sorry.
  • Best practice navigating between QML Windows

    2
    0 Votes
    2 Posts
    1k Views
    V
    QML windows? Do you mean visual items or views? Please read "the document":http://qt-project.org/doc/qt-5.1/qtqml/qml-qtqml-models2-objectmodel.html And you should read the document related to scene graph.
  • Qml-GUI for convertibles -> Problems with MouseAreas

    1
    0 Votes
    1 Posts
    476 Views
    No one has replied
  • Propose making QQuickImage public in Qt 5.2

    8
    0 Votes
    8 Posts
    4k Views
    V
    Thank sohail I knew Shader Effects, I want to use Shader Effects too. However after Shader Effects are rendered, how to save results? The only way I know is grabbing drawing frames. The issue of grabbing drawing frames is that I cannot get full-resolution results because screen resolution is limited.
  • Problem with MultiPointTouchArea updates on Nexus 4 (only?)

    3
    0 Votes
    3 Posts
    1k Views
    L
    Hey, thanks for the reply. funny enough the same bug was apparently reported two days ago there... If anyone else is facing this problem, here is the direct link: "QTBUG-33729":https://bugreports.qt-project.org/browse/QTBUG-33729
  • Problem with FolderListModel

    1
    0 Votes
    1 Posts
    534 Views
    No one has replied
  • Top level drag items / Drop Areas across several windows

    3
    0 Votes
    3 Posts
    973 Views
    R
    Thanks a lot for the Info Jens! That is indeed good news for me, and i will try and get a hold of the Alpha build to see how it works out! - would be glad to possibly give feedback Thanks again
  • Format TableViewColumn item text

    3
    0 Votes
    3 Posts
    907 Views
    D
    Thank you! Then I think I can handle it form c++ by implementing a model by sub classing QAbstractListModel. TaleViewDelegate idea is great. I would like to see it on a future version. :)
  • How to make a grid with infinite scrollbar in Qml

    1
    0 Votes
    1 Posts
    995 Views
    No one has replied
  • QML Video Object does not use alpha channel of video

    3
    0 Votes
    3 Posts
    1k Views
    O
    Well surely they could have an optional flag that you can set to use the alpha channel, so that if you don't want it then you still have the improved speed?
  • "Dead zone" around MouseArea when dragging?

    1
    0 Votes
    1 Posts
    559 Views
    No one has replied
  • TextInput echomode TextInput.Password doesn't work

    2
    0 Votes
    2 Posts
    893 Views
    Y
    Ok, got it working right after posting this... I had to set also passwordCharacter to "*" in addition to setting inputMethodHints to Qt.ImhNone.