Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Including MessageDialog

    4
    0 Votes
    4 Posts
    2k Views
    X
    Hi, I just tested it myself, works like it should be with Qt 5.2.1, you don't need to add any special libraries or modules in the project file. My test code: @ import QtQuick 2.2 import QtQuick.Dialogs 1.1 Rectangle { width: 300 height: 300 Component.onCompleted: messageDialog.open() MessageDialog { id: messageDialog title: "May I have your attention please" text: "It's so cool that you are using Qt Quick." } } @ that is all.. be aware that QtQuick.Dialogs is a dynamic QML plugin, so if you deploy your app and don't run that code from Qt Creator you have to deploy the QtQuick.Dialogs plugin with your app, obviously. :)
  • MouseArea & Multitouch

    15
    0 Votes
    15 Posts
    15k Views
    S
    [quote author="feldifux" date="1337275306"]Thanks! So I'll implement my own item in C++ handling touch events, which has the same API as MouseArea so it is easy to use existing code with it. Because from a QML-user perspective, I would like to have an item where I dont have to care how many touchpoints there are, but only if there was a touch in the area I defined. So like a MultiPointTouchArea with a single touchPoint.[/quote] Could you share code with us or at least tell how to do this ?
  • QML formatted TextArea tab character

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • DPI-independent UI design with QML

    6
    0 Votes
    6 Posts
    11k Views
    V
    Xander84, thanks for the tip but it doesn't really work for me. I develop mobile app and use windows/macos on non-retina displays just to make development faster. Standard 96dpi are to small and devicePixelRation is equal to 1 on non-retina, so I multiply by 2 to make everything bigger :)
  • Item property changes defined in multiple places?

    3
    0 Votes
    3 Posts
    1k Views
    J
    I'm trying to add additional "PropertyChanges" to existing states. (When the page is shown I'd like to have additional animations triggered). I hoped I could put all the common functions into an inheritable object instead of repeating them on every page. I thought about trying to append a PropertyChange object to the existing "state object's changes property":http://qt-project.org/doc/qt-4.8/qml-state.html#changes-prop but it looks like it's read only. I might be able to trigger actions in the child objects using the when clause. Thanks for the help
  • 0 Votes
    3 Posts
    887 Views
    H
    It worked! Thanks. But my problem now is a seg fault with a few Elements in the ListModel. With only 8 elements, I get instant seg fault when I try to run the application. Im now trying to solve it. Thanks again.
  • Auto-indent on wordwrapped lines in TextEdit?

    1
    0 Votes
    1 Posts
    879 Views
    No one has replied
  • Qt Quick Getting Started Text Editor Error - Please Delete

    1
    0 Votes
    1 Posts
    631 Views
    No one has replied
  • [Solved] Deploying Qt Quick 2 application in OpenGL < 2 environment

    7
    0 Votes
    7 Posts
    2k Views
    T
    Turns out ANGLE works with Windows XP SP2, according to "this thread.":http://qt-project.org/forums/viewthread/32056 I couldn't manage to try out MESA though, couldn't build it.
  • Creating dynamic QML component with complicated data type failed

    7
    0 Votes
    7 Posts
    2k Views
    X
    Also there are other ways of creating dynamic objects, you can create an component like this: @ Component { id: blockComponent Block {} } @ in theory that should be the same as @ var blockComponent = Qt.createComponent( "Block.qml" ); @ only as an QML object and not a local variable. the advantage is you can simply define default values or anything in the Block object, but still create dynamic objects with the ID (you should not use a first capital letter for variable names and IDs): @ var block = blockComponent.createObject(parent); @
  • Qt 5.2 QML WebView height: contentHeight

    2
    0 Votes
    2 Posts
    1k Views
    Z
    @import QtQuick 2.0 import QtWebKit 3.0 Item{ width: 400 height: 300 Flickable { anchors.fill: parent contentWidth: parent.width contentHeight: webView.height + label.height Text { id: label text: "Hehe" } WebView { id: webView anchors.top: label.bottom url: "http://www.google.com" width: parent.width height: contentHeight } } }@
  • How to get the camera preview buffer using QML Camera class

    2
    0 Votes
    2 Posts
    734 Views
    E
    Can any one help me for achieve how to get the preview buffer from the camera using QML Camera class. Thanks In Advance
  • [Solved] ObjectModel is not a type

    5
    0 Votes
    5 Posts
    3k Views
    X
    I had the same problem. ObjectModel is a type used by the official Qt5 getting started tutorial. The tutorial: "tut-link":http://qt-project.org/doc/qt-5/gettingstartedqml.html ObjectModel documentation: "doc-link":http://qt-project.org/doc/qt-5/qml-qtqml-models-objectmodel.html You need to make sure that the qtqml models package is installed as shown here: "sol-link":http://askubuntu.com/questions/450948/module-qtqml-models-is-not-installed That's what worked for me.
  • How to display camera preview full screen and maintain aspect ratio

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, Please don't post the same question twice Closing this one "Duplicate":http://qt-project.org/forums/viewthread/41981/
  • How to get network drive uisng Qt

    3
    0 Votes
    3 Posts
    2k Views
    X
    I don't know if Qt has a way of doing that, but this would be a start: @ QFileInfoList drives = QDir::drives(); @ but I don't see anything in QFileInfo to detect if a drive is a network mapped drive, only if you have no letter assigned in windows so the path starts with "//"!?
  • How to display camera preview full screen and maintain aspect raion

    1
    0 Votes
    1 Posts
    622 Views
    No one has replied
  • Manipulate On Shapes drawn by canvas

    2
    0 Votes
    2 Posts
    788 Views
    T
    Hello, I think about one solution: declare a component (support drag feature) wrapping canvas. For onPressed signal I will create one dynamic component as well as trigger onPaint of canvas on that component. Other ideas are welcomed. thanks
  • Animated FastBlur causes Qt Quick application to crash on exit

    5
    0 Votes
    5 Posts
    2k Views
    S
    Issue seems to be solved in Qt5.3 https://bugreports.qt-project.org/browse/QTBUG-38468
  • Qt Widgets in QML

    6
    0 Votes
    6 Posts
    2k Views
    JKSHJ
    Oh, I see. In Qt Quick 2, QDeclarativeView is now called "QQuickView ":http://qt-project.org/doc/qt-5/qquickview.html Use the QQuickView to show your QML file. Then, call QWidget::createWindowContainer() to put the QQuickView inside other widgets. (See https://blog.qt.digia.com/blog/2013/02/19/introducing-qwidgetcreatewindowcontainer/ for an example).
  • How to get frame rate fron camera preview streaming

    1
    0 Votes
    1 Posts
    558 Views
    No one has replied