Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • [SOLVED ] Using (empty) TextFieldStyle alters size of the TextField

    5
    0 Votes
    5 Posts
    1k Views
    K
    I marked the tread as SOLVED, as the problem is now understand. Would still be interesting to know if this behavior s intended or not, might be the Mailing List will answer this.
  • QML interface not fully initialised when main window is shown

    3
    0 Votes
    3 Posts
    931 Views
    C
    Unfortunately creating a sample application won't be possible because the application is quite complex. For now I am using a sleep() just before showing the application.
  • Calling QML functions from C++ [SOLVED]

    12
    0 Votes
    12 Posts
    11k Views
    N
    Problem is finaly solved!
  • Issue with qml files and designer tab of QtCreator of Qt5.4mingwRC1

    1
    0 Votes
    1 Posts
    520 Views
    No one has replied
  • VideoOutput and Camera never ready

    1
    0 Votes
    1 Posts
    955 Views
    No one has replied
  • Memory management of objects handed back to QML

    6
    0 Votes
    6 Posts
    6k Views
    U
    [quote author="chriadam" date="1332833133"]QML already does this. A QObject which is returned to QML from an invokable function as a return value has its ownership semantics set to JavaScriptOwnership if it has not previously been explicitly set to CppOwnership. [/quote] How does this work considering QObject can't be returned by value?
  • What is the "Qt Quick Compiler build tool"

    3
    0 Votes
    3 Posts
    5k Views
    J
    To summarize: The compiler adds the option of letting you compile QML and javascript into efficient C++ code, giving you the option of more effectively hiding/obfuscating your QML in commercial applications and improving the initial startup time of QML applications as it takes away the compilation step at runtime. It does not affect what is currently available in the open source edition.
  • [Solved] How can I capture Command+Q in a Qt Quick application?

    5
    0 Votes
    5 Posts
    2k Views
    C
    Since our application always runs full-screen, the only time it gets hidden is when it gets closed - so I subclassed QQuickView with my own MainView and wrote my own override hideEvent() that did the necessary shutdown.
  • Touble calling a simple c++ function in QML

    2
    0 Votes
    2 Posts
    879 Views
    SGaistS
    Hi, It should rather be: @engine.rootContext()->setContextProperty("TheCalc", &calc);@ Hope it helps
  • Analog of modal QDialog in QML

    6
    0 Votes
    6 Posts
    3k Views
    B
    I just read "this post":http://www.qtcentre.org/archive/index.php/t-41193.html?s=4f0051811b94e81a668de909e4c9df15, which suggested that to get the blocking semantics you should implement a QDialog with blocking semantics, having your QML as the contents of the QDialog. That might give the blocking semantics, but I don't think it would give you the benefit of a native dialog look-and-feel that QML Dialog ought to give you.
  • The order of property initialization of a QML component

    5
    0 Votes
    5 Posts
    4k Views
    benlauB
    [quote author="onek24" date="1417697726"]Hey benlau, I would say the same, i'll look into it if i find some time today. Keep us up to date if you found out something new :)[/quote] well , It is better to let Qt developer to declare an official document about the order. Otherwise, what we did is just a dirty hack .. In fact, I have encountered the problem of initalization sequence for several times already.
  • How i can check what parent is existing?

    7
    0 Votes
    7 Posts
    2k Views
    N
    yes, it is. parent is object type which is have the "width"' property, but the parent himself is wasn't created
  • [solved] setContextProperty not updated dynamically

    6
    0 Votes
    6 Posts
    4k Views
    p3c0P
    You're Welcome. Have fun :)
  • Adding a new component definition in a class method to the scene

    2
    0 Votes
    2 Posts
    690 Views
    p3c0P
    Hi, If I'm not mistaken you can pass the engine object to the class and then find the root object there. @ //main.qml Window { visible: true width: 640 height: 480 title: qsTr("Hello World") } //main.cpp QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); QObject *rootObject= engine.rootObjects().first(); //rootObject will point to Window @ In your case you can either pass rootObject to your class or pass engine to the class so that you can find root element there.
  • [Solved] Is QT Quick the right tool for Raspberry Pi

    14
    0 Votes
    14 Posts
    8k Views
    SGaistS
    Hi, What exact error are you getting ?
  • How can I propagate onPositionChanged() to a child MouseArea?

    1
    0 Votes
    1 Posts
    594 Views
    No one has replied
  • Get screen size from QML

    14
    1 Votes
    14 Posts
    38k Views
    A
    Good...so tag thread's title with [SOLVED]
  • How to detect a gesture in QQuickItem

    1
    0 Votes
    1 Posts
    710 Views
    No one has replied
  • [SOLVED]MouseArea not rectangular, fit like opacitymask

    3
    0 Votes
    3 Posts
    815 Views
    K
    Exactly what I was looking for. Thanks
  • Not able to access members in QML File

    2
    0 Votes
    2 Posts
    777 Views
    p3c0P
    Hi, Few problems here: Use QUrl to load the file from Resource. @ QQmlComponent component(&engine,QUrl("qrc:///main.qml")); @ component.create() will return 0 if the component is not created. Don't directly go for accessing properties. Always check if it is created beforehand. You cannot directly access the child item's property(property int someNumber) directly. You will need to find it first. In your case move someNumber to ApplicationWindow.