Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • How to close a qml loaded by LOADER in its page.

    5
    0 Votes
    5 Posts
    5k Views
    M
    [quote author="sierdzio" date="1377248767"]So, the Back button is a child of the page that is loaded inside the Loader? You can send a signal to your main view to notify it that the page needs to be closed. This is a clean and flexible solution, allowing you to react nicely in the main view, and it will be easy to extend later. Passing singals to and from Loaders is described in the documentation. Other possibility would be to clean "source" from inside your child page: you can get to Loader using parent-child hierarchy: @ Loader { source: "kid.qml" } // kid: Item { id: root YourButton { onClicked: root.parent.source = ""; // or root.parent.parent.source = "" } } @ I won't say it's a good solution, though.[/quote] i'll try it ...and really very thank u because u r so enthusiastic! and wanna communicate more :)
  • 0 Votes
    1 Posts
    3k Views
    No one has replied
  • 0 Votes
    9 Posts
    2k Views
    sierdzioS
    I don't understand you. With the code above, you can run this in your buttons: @ onButton1Clicked: myloader.item.currentIndex = 3; // sets the index to 3 onButton2Clicked: myloader.item.currentIndex = 8; // sets the index to 8 @
  • in quick control,which of event the close window

    2
    0 Votes
    2 Posts
    905 Views
    J
    Your grammar is a bit hard to understand but with Qt 5.1 you can reimplement the "Window::onClosing" handler if you want to accept or ignore a window close request from the user. To just close a window, you can set the visible property to false.
  • Deploying QML2 app on Windows XP embedded

    1
    0 Votes
    1 Posts
    877 Views
    No one has replied
  • QQuickView.rootObject() issues, dynamic signal/slot management design

    8
    0 Votes
    8 Posts
    4k Views
    sierdzioS
    No idea. You can safely ping QtQuick developers on IRC or interest mailing list, though, they should know. You can aim at Alan Alpert, Jerome Pasion or Topi Reinio.
  • Drag and Drop with QQuickView

    3
    0 Votes
    3 Posts
    2k Views
    F
    I'd appreciate any help here: I'm still a bit stuck on the drag and drop functionality I need. I got an email notification about a reply here but now the link to the reply leads me to a whole different thread.
  • Advise on multiple top level QQuickView's

    7
    0 Votes
    7 Posts
    4k Views
    C
    excellent, thanks for your help
  • Showing enums in QtCreator Design mode

    1
    0 Votes
    1 Posts
    567 Views
    No one has replied
  • Possible bug in BorderImage

    3
    0 Votes
    3 Posts
    1k Views
    Z
    Thanks, here is the link: https://bugreports.qt-project.org/browse/QTBUG-33103
  • Updating a QML listview title when the model data changes

    1
    0 Votes
    1 Posts
    772 Views
    No one has replied
  • Passing signal from C++ to object in loader

    3
    0 Votes
    3 Posts
    2k Views
    B
    Thank you. By now I've solved my problem adding a Connection element on the loaded component, on every sub-component of the loaded item!
  • How can I add element to Qt Quick Controls Combobox?

    15
    0 Votes
    15 Posts
    14k Views
    J
    As previously mentioned, you are not supposed to create a ListModel when you expose an abstract item model to qml. @ ComboBox { id: comboComs objectName: "comboCom" model: cbItems } @
  • Menu items get stuck in debug

    2
    0 Votes
    2 Posts
    842 Views
    B
    This was a hint @Qt: gdb: -nograb added to command-line options. Use the -dograb option to enforce grabbing. @ I passed -dograb to run in gdb and this solved the issue.
  • 0 Votes
    1 Posts
    621 Views
    No one has replied
  • Qt5. Embed QWidget object in QML

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • QtCreator Designer - Qt Quick controls don't show up

    1
    0 Votes
    1 Posts
    690 Views
    No one has replied
  • ShadowOffsetX, shadowOffsetY, shadowBlur of Context2D

    1
    0 Votes
    1 Posts
    442 Views
    No one has replied
  • How can i add dll reference to qt project

    2
    0 Votes
    2 Posts
    1k Views
    SGaistS
    Hi, Have a look at "this":http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#libs You can also use QtCreator's"Add Library" feature
  • Vertical header in TableView and ResizeMode for headers

    7
    0 Votes
    7 Posts
    7k Views
    R
    Hmm... Really, I missed anchors.fill property. I finally got something usable. But I have several problems: Your trick with sourceComponent in verticalHeaderDelegate didn't work for me in rowDelegate. I need rowDelegate only for increasing height of rows, I want to save all other row settings. When I added this line to rowDelegate Loader I got "The program has unexpectedly finished." error: @sourceComponent: table.rowDelegate@ And also change height to 120% of normal as I did is not universal solution. I think I found a bug (tell me if I'm wrong and this is a feature, I'm not sure of that). When I place TableView on ApplicationWindow and write: @anchors.fill: parent@ TableView shows me scroolbars instead of trying to minimize columns width to fit into parent component without scroolbars. I tried different variants and stopped on all columns with the same width. I didn't find the way to set width for all columns. I couldn't find the way to iterate through columns too (I've tried to use children property but it gave me bunch of other child, I didn't find how to filter them). So I just copy-pasted the same property to all columns. That's not good. That's my current code: http://pastebin.com/SwPrrAU9 It's prototype: I'll get actual data from C++ model and I'll make checkboxes editable. !http://imageshack.com/a/img703/205/vps0.png(Screenshoot)!