Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • How to add libsndfile library for read and write wav file in qt

    2
    0 Votes
    2 Posts
    1k Views
    V
    "Adding Libraries to Projects":http://qt-project.org/doc/qtcreator-3.0/creator-project-qmake-libraries.html
  • QSqlTableModel, filter and spec. characters

    1
    0 Votes
    1 Posts
    647 Views
    No one has replied
  • [SOLVED] QML and SelectionDialog

    4
    0 Votes
    4 Posts
    1k Views
    ?
    Actually I want it to use as a Combobox, because I have some problems with Combobox (don't like it because cannot change style of dropdown). At the end, I'm going to create some custom comobox... Thank you both.
  • QML TableView TableViewStyle

    1
    0 Votes
    1 Posts
    907 Views
    No one has replied
  • QtQuick.Controls TableView

    3
    0 Votes
    3 Posts
    926 Views
    N
    I am completely new to QML. Not able to find much examples of scrollviewstyle. Can you please give me an example how to use ScrollViewStyle along with tableview. Thanks & Regards, Narayanan
  • Starting to use qtquick and qml from an existing Qt Gui Application

    4
    0 Votes
    4 Posts
    1k Views
    JKSHJ
    Hi, I recommend creating a new Qt Project for Android, and then studying the files that are auto-generated for you. After that, Back up your old project Copy the files from the new project into your old project Merge the new .pro file with your old .pro file Merge the new main() function into your old main() function -- replace QApplication (this is for QWidgets) with QGuiApplication (this is for general GUIs) Reimplement your UI in the sample QML file
  • Is there any *updated* Qt Quick book?

    3
    0 Votes
    3 Posts
    1k Views
    R
    Wow, usefull link, I think. But it's too wide as argument range and not so deeply step-by-step as I'd like... but, of course, it's a monumental enforce to write an high level and open source book as this.
  • [Solved] Dynamic GridLayout

    3
    0 Votes
    3 Posts
    2k Views
    M
    Thanks Vincent, that was the bit I was missing. Looks like you can use Layout.preferredHeight/width - although if this is left as default then it instead uses the items 'implicitHeight' and 'implicitWidth' as opposed to it's normal 'height' and 'width'. So changing my example to use implicitWidth/implicitHeight does the trick @ import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Layouts 1.0 ApplicationWindow { width: 500 height: 500 GridLayout { columns: 2 anchors.centerIn: parent Rectangle { property bool expanded: false implicitWidth: expanded ? 150 : 100; implicitHeight: expanded ? 100 : 50; color: 'red' MouseArea { anchors.fill: parent; onClicked: parent.expanded = !parent.expanded } } Rectangle { property bool expanded: false implicitWidth: expanded ? 150 : 100; implicitHeight: expanded ? 100 : 50; color: 'green' MouseArea { anchors.fill: parent; onClicked: parent.expanded = !parent.expanded } } Rectangle { property bool expanded: false implicitWidth: expanded ? 150 : 100; implicitHeight: expanded ? 100 : 50; color: 'blue' MouseArea { anchors.fill: parent; onClicked: parent.expanded = !parent.expanded } } } } @ Thanks again.
  • How to create a gui for a pure c++ data model (no qt)

    3
    0 Votes
    3 Posts
    1k Views
    V
    Since QtQuick is signal-slot model driven, then yes, you have to provide QObject class over your pure c++ libs
  • Qt QML Signal slot

    3
    0 Votes
    3 Posts
    1k Views
    V
    Where do you call "void ProcessInfo::init()" ?
  • Modal pop-up dialogs in QML?

    9
    0 Votes
    9 Posts
    22k Views
    G
    You're welcome JandunCN.
  • Dynamically add a qml file to an existing qml file...

    2
    0 Votes
    2 Posts
    791 Views
    E
    Never mind, figured it out on my own thanks to solution in another thread: @int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQuickView view; view.setSource(QUrl::fromLocalFile&#40;"qml/GUIManager/main.qml"&#41;); QQuickItem *mainStage = view.rootObject(); QQmlComponent blackRectComponent(view.engine(), QUrl::fromLocalFile&#40;"qml/GUIManager/BlackRectangle.qml"&#41;); QObject *blackRectObject = blackRectComponent.create(); QQuickItem *blackRectItem = qobject_cast<QQuickItem*>(blackRectObject); blackRectItem->setParentItem(mainStage); view.show(); return app.exec(); }@ http://qt-project.org/forums/viewthread/31318/
  • Bounding rectangle of rotated Item

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Dynamic Created Component

    3
    0 Votes
    3 Posts
    834 Views
    N
    Thanks a lot. This is what I was looking for. Thanks & Regards, Narayanan
  • [solved] Qt Quick 2 performance issues

    7
    0 Votes
    7 Posts
    2k Views
    sierdzioS
    hey, great! I'm happy that it helped you :)
  • 0 Votes
    9 Posts
    6k Views
    ?
    Foolish me. Thank you khajvah.
  • Not Able to align the rectangles

    2
    0 Votes
    2 Posts
    688 Views
    p3c0P
    Hi, Try anchoring it to bottom of your main_screen. @ anchors.bottom: main_screen.bottom @
  • Adding a tab in Widget from a class

    4
    0 Votes
    4 Posts
    1k Views
    SGaistS
    Hi and welcome to devnet, After adding the tab you should use either setCurrentIndex of setCurrentWidget to switch to your new tab. As dmcr noted, please chose the sub forum more carefully
  • TestCase - Test Driven Development (TDD) in QML

    3
    0 Votes
    3 Posts
    4k Views
    M
    I finally got around to solving this. You can't use qmlscene for TestCase testing. You can roll your own, but easier is to just use the qmltestrunner utility.
  • Gridview with Horizontally placed elements and Horizontal Scrolling

    1
    0 Votes
    1 Posts
    549 Views
    No one has replied