跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.2k 主題 77.8k 貼文
  • Getting an Image Buffer from VideoOutput/Camera

    1
    0 評價
    1 貼文
    836 瀏覽
    尚無回覆
  • Save image with whatever on the image

    5
    0 評價
    5 貼文
    1k 瀏覽
    T
    Hope it release soon :)
  • Size of bold font changes between 5.3 and 5.2.1 qt - Any workaround?

    1
    0 評價
    1 貼文
    509 瀏覽
    尚無回覆
  • How to change scenes in QML?

    0
    0 評價
    0 貼文
    737 瀏覽
    尚無回覆
  • QQmlFileSelector not working on Android from assets folder

    2
    0 評價
    2 貼文
    2k 瀏覽
    D
    Same for me, with Android it does not work. :( I make same tests with same results.
  • QML project can't be run by Static Qt linking version , Qt 5.2

    30
    1 評價
    30 貼文
    14k 瀏覽
    M
    I just solved the problem. The key feature was in start configure from Src folder, NOT from Src/qtbase. But i have another problem. Applications works on my computer, but not works on another. In QtCreator\Qt Versions i see warning: Non-installed -prefix build - for internal development only. In qt i am a newbie and i do not know what it is means. Help me please!
  • Strange question in AnimatedImage

    2
    0 評價
    2 貼文
    640 瀏覽
    C
    Well, if I destroyed the AnimatedImage objects in the first QML before the second QML be loaded, it works. But i don't know why, AnimatedImage object can't exist two or more in the same time?
  • Qml Timer Alternative

    1
    0 評價
    1 貼文
    907 瀏覽
    尚無回覆
  • Undefined reference to `vtable for MyClass'

    2
    0 評價
    2 貼文
    1k 瀏覽
    L
    Oh I finally solved the problem myclass.h @ #ifndef MYCLASS_H #define MYCLASS_H #include <QObject> class MyClass : public QObject { Q_OBJECT public: explicit MyClass(QObject *parent = 0); signals: public slots: void helloMethod(const QString &msg); }; #endif @ myclass.cpp @ #include "myclass.h" #include <QDebug> MyClass::MyClass(QObject *parent) : QObject(parent) { } void MyClass::helloMethod(const QString &msg) { qDebug() << "Called the C++ slot with message:" << msg; } @
  • [Solved] Best practice associating event handlers with state changes

    2
    0 評價
    2 貼文
    680 瀏覽
    S
    The only workaround I've found so far is: @ Keys.onPressed: keyHandler(event) property var keyHandler: function(event){} ... PropertyChanges { target: whatever keyHandler: function(event){console.log(event.text)} } @
  • Is there a way to see QML files in "live" ? [solved]

    3
    0 評價
    3 貼文
    1k 瀏覽
    A
    Hi, Thanks. I see that. Sincerely
  • Qt Quick Controls FileDialog onAccepted handler can not destroy objects right away on Linux

    1
    0 評價
    1 貼文
    743 瀏覽
    尚無回覆
  • Create and Control a QML Component from C++

    2
    0 評價
    2 貼文
    2k 瀏覽
    D
    This is how I did it, please go through it and suggest any changes or different approaches for doing the same. @QtQuick2ApplicationViewer *viewer = QtQuick2ApplicationViewer::instance(); QQmlContext *context = viewer->rootContext(); context->setContextProperty("_client", &client); /Main QML File/ viewer->setMainQmlFile(QStringLiteral("qml/qml-dynamic/main.qml")); viewer->showExpanded(); QQmlEngine *engine = viewer->engine(); /dynamically loaded component/ QQmlComponent component(engine, QUrl::fromLocalFile("qml/qml-dynamic/dyn-comp.qml")); QObject *object = component.create(); QQuickItem item = qobject_cast<QQuickItem>(object); /In qml, items won't get drawn unless they are parented to the view./ /* You should always use QObject::setProperty(), QDeclarativeProperty or QMetaProperty::write() to change a QML property value, to ensure the QML engine is made aware of the property change. / object->setProperty("parent", QVariant::fromValue<QObject>(viewer->rootObject())); /This works same as setProperty/ // QQmlProperty::write(object, "parent" // , QVariant::fromValue<QObject*>(viewer->rootObject())); QQmlEngine::setObjectOwnership(object, QQmlEngine::CppOwnership); /Set X and Y properties of the item created./ item->setx(150); item->setY(150);@
  • QML dropdown list/combobox-like in tableview , z-ordering of items

    5
    0 評價
    5 貼文
    7k 瀏覽
    G
    OK,I have found the problem. I can't change the parent in Component.onCompleted.I need to change it in MouseArea's onClicked signal which I want to popup the dropdown list. @ MouseArea { width: 400 height: 30 anchors.bottomMargin: 0 anchors.fill: parent; hoverEnabled: true onClicked: { combo.state = combo.state==="dropDown"?"":"dropDown" // Reparent the dropDown to the top-level item so that it always stays on top of all other items var topLevel = dropDown while(topLevel.parent) { topLevel = topLevel.parent } var coordinates = dropDown.mapToItem(topLevel, 0, 0) dropDown.parent = topLevel dropDown.x = coordinates.x dropDown.y = coordinates.y } }@
  • Loading a another view fro list items

    1
    0 評價
    1 貼文
    503 瀏覽
    尚無回覆
  • Bug when using Loader in a directly instantiated QQuickView

    2
    0 評價
    2 貼文
    698 瀏覽
    GianlucaG
    File a bug report on http://bugreports.qt-project.org/
  • Converting object to string

    8
    0 評價
    8 貼文
    16k 瀏覽
    L
    Happened here too. Probably you should submit a bug report. Doesn't happen to cpp exported object or js object
  • ComboBox not draw on core profile?

    1
    0 評價
    1 貼文
    482 瀏覽
    尚無回覆
  • [solved] Dynamically adding items

    3
    0 評價
    3 貼文
    895 瀏覽
    D
    Oops, you're right! The status is 3 (Component.Error), and the errorString showed there was an error in the qml file I was trying to load. Thanks for the hint!
  • QtQuickItem with custom opengl draw - after first frame, item dissapear

    3
    0 評價
    3 貼文
    1k 瀏覽
    K
    pleas Qt guys, does anyone know where is problem?