Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Functional Qt Multimedia backend

    1
    0 Votes
    1 Posts
    777 Views
    No one has replied
  • QML and C++ interaction. Need advice

    2
    0 Votes
    2 Posts
    892 Views
    U
    Hi, I'm not sure I understood your question but if you give an id to your editors or if you know the indices of your tabs, you can call slots of your editor instances to perform specific actions in given editor. A slot is called like a javascript function: @myReference.calledFunction(args);@
  • [SOLVED] How to make C++ wait after emitting signal

    1
    0 Votes
    1 Posts
    791 Views
    No one has replied
  • Find typelist.qml

    1
    0 Votes
    1 Posts
    756 Views
    No one has replied
  • QtQuick 2 - Windows 8 Desktop Style (Not Metro)

    2
    0 Votes
    2 Posts
    1k Views
    J
    We do not currently have plans to target Windows 8 controls directly. That said, you can get the design assets directly from Microsoft and implement them through custom styles. http://msdn.microsoft.com/en-us/library/windows/apps/hh700403.aspx
  • AnimatedImage - unable to read MNG files

    7
    0 Votes
    7 Posts
    3k Views
    S
    I uninstalled the repository version and installed the official Qt 5.1 distribution instead. Works fine now.
  • How to dynamically change GridView column count?

    2
    0 Votes
    2 Posts
    2k Views
    V
    hi Allopen QWidget::resizeEvent() which you can reimplement in your widget.In this you can change the grid.celwidth.
  • How to access two frame buffers by single application.?

    2
    0 Votes
    2 Posts
    1k Views
    B
    @QWSServer *server = QWSServer::instance(); QScreen *screen = QScreen::instance(); server->enablePainting(false); screen->shutdownDevice(); screen->disconnect(); screen->connect("/dev/fb2"); screen->initDevice(); server->enablePainting(true); server->refresh(); @ default is /dev/fb0. This code will start to use /dev/fb2.
  • Comboboxes are drawn wrong.

    1
    0 Votes
    1 Posts
    707 Views
    No one has replied
  • Can't display custom c++ based Item

    6
    0 Votes
    6 Posts
    2k Views
    sierdzioS
    You can take a look at my CCF project. It is rather large, but I do a lot of tricky QML stuff, including custom painting. It should work out of the box in Qt Creator. "Link to custom-painted class":https://github.com/sierdzio/closecombatfree/blob/master/src/qmlBase/ccfqmlbasemap.h.
  • 0 Votes
    4 Posts
    2k Views
    J
    I'm missing big parts of your code. Next time please place your code between at-sign characters (most right icon on the top) I do not quite understand what your trying to do, but as far as I know putting JavaScript code in the component does not work. You may put them in the attached property Component.onCompleted. @ Loader { id: cmpntLoader Component{ id: dialogComponent property int slotNum // I expect you have something like this too Component.onCompleted: { var component = Qt.createComponent("BrandPopup.qml"); if (component.status === Component.Ready) { component.createObject(main, {"slot":slotNum}); } } } @ Maybe it would help if you give a more complete example of your code to show what you try to do.
  • How does the "Getting Started" tutorial code actually launch?

    3
    0 Votes
    3 Posts
    1k Views
    U
    I'm using Qt 5.1.0 and the following process works for me. Copy an example directory to somewhere. $ cd ~/src $ cp -r /usr/local/Qt-5.1.0/examples/quick/tutorials/gettingStartedQml/parts/part5 ./ Make plugins of the example (if any). $ cd filedialog $ qmake $ make When you see .pro file, you can execute qmake and make to build .cpp files. Run the example $ cd ~/src/part5 $ qmlscene TextEditor.qml
  • Public API for creating user defined basic types

    2
    0 Votes
    2 Posts
    792 Views
    SGaistS
    Hi, Since it's getting to private API, you should rather ask this question on the interest mailing list, you'll find Qt's developers/maintainers there (this forum is more user oriented)
  • 0 Votes
    6 Posts
    5k Views
    sierdzioS
    I don't think they are in any way related.
  • Help with this simple property change

    6
    0 Votes
    6 Posts
    1k Views
    Q
    In the gradient stop, I should have used testrect.gradcolor. I forgot to reference where the property came from.
  • 0 Votes
    8 Posts
    10k Views
    C
    Oh! Sorry, I clearly wasn't paying attention. My bad. You get the same error? If you #include <qqml.h> does it fix the issue? I expect not, since I assume that the QQmlEngine header would include that, but clearly there's some header in the module which is included by the module include (QtQml) but not from QQmlEngine or QQmlView... Strange. Cheers, Chris.
  • Problems with Gridview

    5
    0 Votes
    5 Posts
    2k Views
    D
    Thanks for your response and explanations Jens. I've definately learnt a bit more about Qml.
  • Cannot set an image background in a Button (qt quick controls)

    3
    0 Votes
    3 Posts
    2k Views
    M
    Thank you, I've work around it with the Image child solution ;)
  • [Solved] ComboBoxStyle: QtQuick.Controls and QtQuick.Controls.Styles

    8
    0 Votes
    8 Posts
    5k Views
    H
    I've recreated the files (luckily in the bin) and reopened the project. It now works. I have no idea of what happened, and why I cannot reproduce the error. In the meantime I have also rebooted Qt Creator (it hang - otherwise I would not have done this). Maybe the issue was related to that as well? (Qt Creator was not rebooted before I got it working in the new project, so it was not the reboot only that did it) Again, thanks for your help.
  • Import Qt Quick Components

    5
    0 Votes
    5 Posts
    2k Views
    I
    ah ok very nice thank you