Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • No memory release on ListView

    3
    0 Votes
    3 Posts
    731 Views
    A
    Thanks ustulation. I tryied running QJSEngine::collectGarbage() and it didn't release memory. Any ideas ?
  • QQuickView or QQmlApplicationEngine or QQuickWidget

    2
    0 Votes
    2 Posts
    2k Views
    JKSHJ
    Hi, Start by reading "this thread":http://qt-project.org/forums/viewthread/49581 Use QQuickWidget if (and only if) you want to integrate your QML GUI into a C++ QWidget-based GUI. Post back if you'd like anything clarified. [quote author="ustulation" date="1421583894"]For eg., In my QQuickView derivative I could easily handle the events by overriding the appropriate virtuals. Don't know if that would be possible/convenient for QQmlApplicationEngine approach, etc.[/quote]What kind of events do you mean?
  • How-to make grid-like customizable UI

    3
    0 Votes
    3 Posts
    716 Views
    M
    It looks like GridView not intended to display items with different size (width/height).
  • Build qml project

    4
    0 Votes
    4 Posts
    1k Views
    C
    [quote author="mehrdad" date="1421513987"]i check it but all i have found is about build qt quick application and i have no problem with that. in qt quick application mode everything work normal... can you give me a link about how can i build this king of programs step by step?[/quote] You have all the step by step instructions "here":http://doc.qt.io/qtcreator/index.html.
  • Charts in QML

    10
    0 Votes
    10 Posts
    5k Views
    H
    Subscribe to the library. I will try to install it and check.
  • Import and export database

    5
    0 Votes
    5 Posts
    1k Views
    H
    finally, i can solve it. thank u very much
  • [CPP2QML Boxing/Wrapping]

    1
    0 Votes
    1 Posts
    714 Views
    No one has replied
  • Module "QtQml.Models" is not installed

    4
    0 Votes
    4 Posts
    2k Views
    M
    Hi, i have this problem too but i use linux and i cant use visual studio...
  • Pass mouse event

    2
    0 Votes
    2 Posts
    11k Views
    shavS
    Hi, Did you try "propagateComposedEvents":http://doc.qt.io/qt-5/qml-qtquick-mousearea.html#propagateComposedEvents-prop property for MouseArea? But this work only if you need to call another MouseArea event. When you use Button it's doesn't work.
  • Can we align text in Text element which is part of Grid?

    2
    0 Votes
    2 Posts
    12k Views
    shavS
    Hi, Did you try set width and height properties to every Text element? Another way you can use "ListView":http://doc.qt.io/qt-5/qml-qtquick-listview.html : @ ListModel { id: model ListElement { title: "Employee" value: "John" } ListElement { title: "Salary" value: "50k" } } ListView { id: list anchors.fill: parent model: model delegate: Rectangle { id: itemView width: list.width height: 30 color: "red" Row { anchors.fill: parent spacing: 20 Text { id: nameText width: (parent.width / 2) - 10 height: parent.height verticalAlignment: Qt.AlignVCenter text: model.title horizontalAlignment: Text.AlignRight } Text { id: valueText width: (parent.width / 2) - 10 height: parent.height verticalAlignment: Qt.AlignVCenter text: model.value } } } } @ Also you can use "TableView":http://doc.qt.io/qt-5/qml-qtquick-controls-tabview.html component from QtQuick Controls module.
  • [Solved] Setting ToolBar height on Android

    4
    0 Votes
    4 Posts
    3k Views
    T
    I'm running Android 4.4.4 on a Samsung GalaxyS4. The example code is within ApplicationWindow. Below are the current screen shots (Android top, iPhone bottom) !http://i.imgur.com/Vnof5sM.png(Android)! !http://i.imgur.com/AeSWHeW.png(iOS)!
  • Draw QImage in QQuickWindow::beforeRendering

    1
    0 Votes
    1 Posts
    440 Views
    No one has replied
  • QQmlComponent ReferenceError not coming through via errors()

    3
    0 Votes
    3 Posts
    801 Views
    K
    Thanks for answering. Will try this out when I find time. Could you elaborate on what message handle to install. I'm a newbie to QML, so I don't really have an idea what to use... :/
  • How to use programmatically control of UI without mouse & keyboard

    7
    0 Votes
    7 Posts
    2k Views
    K
    Ok, thanks.. In addition I would be happy to see a some source examples too.. ;)
  • QtQuick 1.1 graph charts

    2
    0 Votes
    2 Posts
    672 Views
    A
    In Quick 1.1, you can paint items using QPainter. It seems very possible to draw whatever you need that way. A progress bar however should be trivial to make in pure QML.
  • Forcing uppercase only into QLineEdit

    18
    0 Votes
    18 Posts
    15k Views
    A
    You can also start capturing and modifying your key events.
  • [SOLVED] Use RegExpValidator to validate strings

    3
    0 Votes
    3 Posts
    1k Views
    P
    Oh… that was simple! Thanks! :-)
  • Creating Custom Progressive Bar

    2
    0 Votes
    2 Posts
    629 Views
    N
    Hi, Seems like the link is unavailable. I'll re-post it here[1]. http://picpaste.com/Skin_16-gUgE3l7B.png
  • 0 Votes
    1 Posts
    464 Views
    No one has replied
  • Obtaining reference to dynamically added QQuickItems

    4
    0 Votes
    4 Posts
    1k Views
    S
    Hello Folks; My apologies for the tardiness of my reply. I also apologize for not providing a complete code example. is the graphContainer object - I neglected to rename it in my code snippet. Here's the graphContainer.qml file: @ // QML import QtQuick 2.2 import GraphUI 1.0 Rectangle { anchors.centerIn: parent id: graphContainer objectName: "graphContainer" height:0;width:0 x:0;y:0 /* DEBUG border.color: "green" border.width: 2 */ } @ As to onek24's marvelous suggestion, I've attempted such, but with a small difference: the objectName is programmatically set to a GUID. But I'm coming up empty when I: @ QQuickItem qqEdge = m_GraphContainer->findChild<QQuickItem>(RID); @ The QtCreator debugger shows all children collections to be empty, but my UI displays all edges and nodes correctly. Thank you again, ST