Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • [Solved] Error: forward declaration of 'class QQmlContext'

    4
    0 Votes
    4 Posts
    19k Views
    SGaistS
    You're welcome ! A little learning curve... Happy coding :)
  • Styling QtQuick Controls ComboBox

    2
    0 Votes
    2 Posts
    1k Views
    E
    Hi, does nobody have an answer to this? I have no issue with styling the combobox itself, just the drop down box.
  • How to use a QWidget created or defined by some programmer?

    3
    0 Votes
    3 Posts
    851 Views
    J
    Hi, koahnig, thanks for reply. There are MyComboBox.cpp and MyComboBox.h, but no MyComboBox.ui. I read some help documents where there are some words about "Promoting widgets" and some dialog titled "Promoted widgets". Where is the "Promoted widgets" dialog? I have not found it. Thanks again for your help!
  • Qt Threaded Renderer

    4
    0 Votes
    4 Posts
    4k Views
    slettaS
    The right way to integrate with the scene graph when you cannot run on the rendering thread is to render to an FBO using a QOpenGLContext which has context sharing with the scene graph's opengl context. The resulting FBO can then be rendered as a texture in the scene graph. The examples/quick/scenegraph/textureinthread example illustrates how this can be done. As the name "QML_BAD_GUI_RENDER_LOOP" is not all that friendly, the environment variable is "QSG_RENDER_LOOP=basic" or "QSG_RENDER_LOOP=windows" starting with 5.1. Both "basic" and "windows" are doing rendering on the GUI thread. This flag is meant to be used as a debugging measure mostly, it is not properly supported API, but chances that it will go away is very small :)
  • Binding value to component

    1
    0 Votes
    1 Posts
    608 Views
    No one has replied
  • QtQuick in a terminal

    4
    0 Votes
    4 Posts
    2k Views
    C
    Use QGuiApplication with Qt5, instead of QApplication. You need "QT += quick qml gui" in your .pro. Cheers, Chris.
  • Qt Quick Controls Styling MenuBar

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Serious issue in deploying qml app with qt 5.1 list of attr. too long

    10
    0 Votes
    10 Posts
    3k Views
    I
    kk, thanks.
  • Preventing an image from overlapping its parents corners

    1
    0 Votes
    1 Posts
    671 Views
    No one has replied
  • SVG images overlapping and event handling

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • 0 Votes
    4 Posts
    7k Views
    G
    Hello, To avoid the signal boilerplate, you can use "QJSValue":http://qt-project.org/doc/qt-5.1/qtqml/qjsvalue.html Please refer to "this post":http://qt-project.org/forums/viewthread/4521 for an example
  • [SOLVED] Behavior seems to have no effect

    5
    0 Votes
    5 Posts
    1k Views
    U
    Thanks sierdzio Let me summarize my experiment. work fine: Behavior on color {ColorAnimation { duration: 1000 }} doesn't work: Behavior {ColorAnimation { property: "color"; duration: 1000 }} Behavior {ColorAnimation { property: color; duration: 1000 }} ColorAnimation on color { duration: 1000 } ColorAnimation { property: "color"; duration: 1000 } ColorAnimation { property: color; duration: 1000 }
  • Cross compiling qtdeclarative?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QtQuick 1 and QtQuick 2 in QT5.1 - OpenGL dependency

    4
    0 Votes
    4 Posts
    3k Views
    sierdzioS
    There is always mesa, plus you can squeeze a bit more performance if you use clang/llvm. There are other options in Qt: QtQuick 1 Qt Graphics View Framework QPainter and widgets in general
  • How fast and demanding can HTML5 detailed pixel rendering be in QML?

    4
    0 Votes
    4 Posts
    1k Views
    C
    Hi, It's all open source. https://qt.gitorious.org/qt/qtdeclarative/trees/stable/src/quick/items/context2d Cheers, Chris.
  • [SOLVED] qmlRegisterType error with parameterized constructor

    10
    0 Votes
    10 Posts
    7k Views
    L
    i got it working, thank you both
  • 0 Votes
    10 Posts
    4k Views
    T
    To sum it up, the trick to using Timer for this, is having a complete signal in each Timer, in my case I have several methods, each needs the progress bar to animate before it's run, and one of the methods needs to be run multiple times incrementing the progress bar before each run, in that method I also have a continued signal. Look at my example above for more.
  • 0 Votes
    1 Posts
    670 Views
    No one has replied
  • Using QSqlQueryModel in QML without reimplement it [Solved]

    9
    0 Votes
    9 Posts
    7k Views
    A
    Hi Luca, Andre someone may update the link that talks about role names? I'm facin the same problem. thanks
  • 0 Votes
    6 Posts
    2k Views
    T
    I believe the following thread is generally a good reference for deploying on windows: http://qt-project.org/forums/viewthread/25714/