Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Import failure(bug?)

    4
    0 Votes
    4 Posts
    1k Views
    O
    My QtQuick initializing code: @MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); QQuickView *view = new QQuickView(QUrl("qrc:/qml/main.qml")); QWidget::createWindowContainer(view, this); }@ I would guess that the problem is this line: @QWidget::createWindowContainer(view, this);@ Currently i am using a qtquick2controlsapplicationviewer and it works fine so far. Provisionally solved
  • Screen Management

    1
    0 Votes
    1 Posts
    816 Views
    No one has replied
  • HTML5 backend for Qt/Qml

    7
    0 Votes
    7 Posts
    5k Views
    J
    You might also want to take a look at http://qt-project.org/wiki/Qt_for_Google_Native_Client
  • Videopaly back in qml?

    1
    0 Votes
    1 Posts
    561 Views
    No one has replied
  • Unit test for QML

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • QML/C++ multithreading interconnection crash

    4
    0 Votes
    4 Posts
    3k Views
    M
    Hi, thanks for your suggestions. I agree that while(!WorkerThread->isRunning()); may be bad construct, but it doesn't solve the problem. Although GUI thread may freeze for awhile, it still continues and both threads are running. The run() executive is in different thread than gui, and the problem still persists. Ignoring "binding loop" message doesn't help either, when the gui thread still crashes - I guess only QQmlApplicationEngine has some poblem as outlined by this assert ASSERT: “engine->jsStackTop >= mark”
  • QML Application : Display partially froze

    1
    0 Votes
    1 Posts
    508 Views
    No one has replied
  • [SOLVED] Qt 5.2 c++ model update stops working after a while

    7
    0 Votes
    7 Posts
    2k Views
    L
    Thank you for the explanation. I like the new behavior of the GC, because it shows me that I have a problem in my code. So I can find it and fix it. Coming form only c++, I must say that the JavaScriptOwnership issue surprised me. For me it is odd, that someone else is deleting objects I created in c++. Thanks again.
  • Pictures and text blurry on second screen

    14
    0 Votes
    14 Posts
    5k Views
    M
    I could not find any graphic-card settings on my mac so I could not test the upscale of the Mac display. For me it related with retina screen. Apps look way different even with the same res on both screen.
  • 0 Votes
    4 Posts
    1k Views
    sierdzioS
    You can use either of them. QQuickItem uses the new Scene Graph type of rendering, while the QQuickPaintedItem uses the old QPainter. Performance of both are comparable.
  • Loading resources in a file embedded in a resource file

    5
    0 Votes
    5 Posts
    3k Views
    Z
    I've solved the problem by putting some alias and regrouping the qml and image files into the same .qrc file but organized with different prefixes. But now I've got another problem. I've put all my qml files into the same qrc file and I'm trying to initiate a pathview with a ListModel. The List Model is in a file alone and the PathView in another qml file. I'm trying to do : @PathView { id: myPathView delegate: myDelegate model: myModel [...] }@ with my ListModel looking like this : @import QtQuick 2.0 ListModel { id: myModel ListElement { name: "MyElement1" } ListElement { name: "MyElement2" } ListElement { name: "MyElement3" } }@ But the pathview doesn't find the ListModel. When I tried something similar with a test projet and qml files that weren't in a .qrc file, it worked without any problem. It seems that when .qrc are involved, scopes are different... Any ideas ?
  • Is there a restriction on the size of the QML Flickable content ?

    1
    0 Votes
    1 Posts
    578 Views
    No one has replied
  • [Solved] Motion blur moving a rectangle

    9
    0 Votes
    9 Posts
    3k Views
    O
    Hi onek24. I try the directional blur. It's great! In my case, moving a rounded rectangle, with no image inside. The effect is low. But great improvement. Gives a better movement sensation. Some details: 1- Because is a rounded rectangle. By default the blured area is defined by this rectangle, so I marked "transparentBorder = true". And play with the length of the blur. 2- I'm giving a direction, with each new position, to make the directionalBlur goes in the same way as the movement. Thanks for your help.
  • [solved]Boundaries of TextInput

    2
    0 Votes
    2 Posts
    750 Views
    B
    Ah, finally figured it out, TextInput has a property named clip that has to be set to true
  • Dynamic objects and QML bindings

    9
    0 Votes
    9 Posts
    7k Views
    O
    You're welcome. Glad we could help you.
  • QML placeholder

    6
    0 Votes
    6 Posts
    10k Views
    JKSHJ
    Hi, it's QtQuick.Controls 1.1, not QtQuick 1.1. Also, this page might be useful: http://qt-project.org/doc/qt-5/qml-qtquick-controls-textfield.html
  • Android kit for Qt Quick UI

    4
    0 Votes
    4 Posts
    2k Views
    S
    This is a simple how to video that I followed and was able to get everything to work. It might help you, but without more information, I'm just taking a guess to what is wrong. "Tutorial":http://www.youtube.com/watch?v=_nkhlhBwkjk
  • Cath the event of quit from application

    7
    0 Votes
    7 Posts
    2k Views
    I
    ok, I will try controll from c++. Thank you for interest
  • [Android] Qt5.2 little Audioplayer with QMultimedia -> No sound

    1
    0 Votes
    1 Posts
    739 Views
    No one has replied
  • Application Architecture (StackView)

    3
    0 Votes
    3 Posts
    1k Views
    J
    Hmmm, You can use the StackView and re-use the same ListView over and over again if you want. When pushing a item onto the stack you can pass in arguments. See http://qt-project.org/doc/qt-5.1/qtquickcontrols/qml-qtquick-controls1-stackview.html section Pushing Items One argument could be the a reference to the model to be loaded. values in the properties argument the are applied on construction of the list view. Back is then automatically handled using pop() (selection preservation). The overhead in memory is to have all stacked list views in memory. If a list view is popped it will be destroyed. Also having these 20 different list view as separate files or components inside your project. If you need a C++ model, depends where your data comes from.