跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.3k 貼文
  • Embed QML Item in QWidget

    4
    0 評價
    4 貼文
    3k 瀏覽
    JKSHJ
    Hi, QDeclarativeView is for Qt Quick 1. These are old technologies which are now deprecated. Use QQuickWidget + Qt Quick 2 instead. See "Porting QML Applications to Qt 5":http://doc.qt.io/qt-5/qtquick-porting-qt5.html for more info.
  • Where did the QSGRenderThread go ? (Qt5.4 - Xcode 6 Instruments)

    2
    0 評價
    2 貼文
    992 瀏覽
    JKSHJ
    Hi, I don't know why, but the Qt engineers do. You can find them at the "Interest mailing list":http://lists.qt-project.org/mailman/listinfo/interest (You need to subscribe first)
  • Error Quick

    3
    0 評價
    3 貼文
    810 瀏覽
    T
    yes, install apt-get install xserver-xorg-video-intel libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core [quote author="sierdzio" date="1421827439"]Do you have OpenGL drivers installed?[/quote]
  • Cannot assign object to list [SOLVED]

    4
    0 評價
    4 貼文
    4k 瀏覽
    S
    Once again I shoot myself in the foot. I'm posting this for the benefit of everyone else since it was such a stupid thing that I did: qRegisterMetaType<QObject*>("QQuickitemLayer"); What's going on here (as far as I can tell) is that QObject* was bound to the name QQuickItemLayer in the Qt Meta Object system. The issue with this is that the subsequent QML elements are registered also using these same types. I know this is a vague explanation- but it boils down to the meta type system. Taking this line out in my code fixed the issue I was seeing. I'm writing a blogpost elsewhere to fully explain some of the things I tried since a lot of it is off topic. The reason I put this line of code in was that the QmlEngine was reporting that this was an issue in a console app. I thought I was being clever by providing this type (it silenced the console errors). However, it just caused a bigger issue.
  • A Hellow World compiled in Qt5.4 for android takes 15s to open

    1
    0 評價
    1 貼文
    401 瀏覽
    尚無回覆
  • How to handle keys in Qt Quick Controls application

    2
    0 評價
    2 貼文
    548 瀏覽
    p3c0P
    Hi, You can add Item to ApplicationWindow and then use Keys.onBackPressed in it. Keep focus on this Item.
  • The Qt Scene Graph uses AoS to organize buffer data, why not SoA?

    2
    0 評價
    2 貼文
    702 瀏覽
    SGaistS
    Hi, For that kind of questions you shoud rather go to the interest mailing list. You'll find there Qt's developers/maintainers (this forum is more user oriented) the #qt IRC channel can also be a good place to discuss this
  • [ SOLVED ] QML : how to pass javascript function as argument in another function

    12
    0 評價
    12 貼文
    7k 瀏覽
    shavS
    I glad to help you with your problem. If your problem was fix please mark thread as SOLVED.
  • [SOLVED] How use pathElement in function

    5
    0 評價
    5 貼文
    2k 瀏覽
    p3c0P
    Right :) Still adhered to the old style ;)
  • [SOLVED] Loader and MouseArea issues.

    7
    0 評價
    7 貼文
    3k 瀏覽
    p3c0P
    You're Welcome :) Happy Coding..
  • Pass Camera preview from QML to C++

    2
    0 評價
    2 貼文
    2k 瀏覽
    C
    Hi, what exactly went wrong ? I used C++ QCamera(and all related) from QML and everything is working properly, but I didn't try to find camera object from qml root. Instead I create a property in C++ class, expose it to qml, and from qml assign the camera object to that C++ property.
  • Creating an Alias for a QML Type Member

    4
    0 評價
    4 貼文
    1k 瀏覽
    p3c0P
    bq. Is it possible to create a property alias for “label”? I guess it won't work as the Component which it refers to would not have been initiated. If your purpose is to dynamically change the label's component you can create a property Component and the assign it a Component when you call it. eg: @ MyButton.qml Item { property Component myComp Button { style: ButtonStyle { id: styleLabel label: myComp background: Rectangle { ... } } } } Main.qml MyButton { myComp: Qt.createComponent("labelDelegate1.qml") } MyButton { myComp: Qt.createComponent("labelDelegate2.qml") } @ Hope this helps...
  • Transition animation not working

    3
    0 評價
    3 貼文
    747 瀏覽
    dheerendraD
    For every animation you need to tell which which property you would like animate. If you want the animation to triggered by default, you can Behaviour on <x> {} e.g @Rectangle { id: rect width: 100; height: 100 color: "red" Behavior on x { NumberAnimation { duration: 1000 } } MouseArea { anchors.fill: parent onClicked: rect.width = 50 } }@
  • Command pattern with QML

    3
    0 評價
    3 貼文
    1k 瀏覽
    dheerendraD
    Did you get a chance to look at how to integrate C++ and QML ? QtAssistant provides good examples for this integration. You will be able to solve your issue.
  • No memory release on ListView

    3
    0 評價
    3 貼文
    731 瀏覽
    A
    Thanks ustulation. I tryied running QJSEngine::collectGarbage() and it didn't release memory. Any ideas ?
  • QQuickView or QQmlApplicationEngine or QQuickWidget

    2
    0 評價
    2 貼文
    2k 瀏覽
    JKSHJ
    Hi, Start by reading "this thread":http://qt-project.org/forums/viewthread/49581 Use QQuickWidget if (and only if) you want to integrate your QML GUI into a C++ QWidget-based GUI. Post back if you'd like anything clarified. [quote author="ustulation" date="1421583894"]For eg., In my QQuickView derivative I could easily handle the events by overriding the appropriate virtuals. Don't know if that would be possible/convenient for QQmlApplicationEngine approach, etc.[/quote]What kind of events do you mean?
  • How-to make grid-like customizable UI

    3
    0 評價
    3 貼文
    716 瀏覽
    M
    It looks like GridView not intended to display items with different size (width/height).
  • Build qml project

    4
    0 評價
    4 貼文
    1k 瀏覽
    C
    [quote author="mehrdad" date="1421513987"]i check it but all i have found is about build qt quick application and i have no problem with that. in qt quick application mode everything work normal... can you give me a link about how can i build this king of programs step by step?[/quote] You have all the step by step instructions "here":http://doc.qt.io/qtcreator/index.html.
  • Charts in QML

    10
    0 評價
    10 貼文
    5k 瀏覽
    H
    Subscribe to the library. I will try to install it and check.
  • Import and export database

    5
    0 評價
    5 貼文
    1k 瀏覽
    H
    finally, i can solve it. thank u very much