Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Inheritance issue not direct base of.

    8
    0 Votes
    8 Posts
    3k Views
    R
    Okay I figured out the linking issue, All of what you said above works well. The issue was in my qt.pro file I forgot to include QT += multimedia multimediawidgets Everything links fine now thanks again!
  • Doing Syntax Highlighting

    4
    0 Votes
    4 Posts
    2k Views
    J
    Yes. It should be trivial to port for instance this: http://qt-project.org/doc/qt-5.0/qtwidgets/richtext-syntaxhighlighter.html to work with Qt Quick since they share the same QTextDocument API now.
  • 0 Votes
    3 Posts
    2k Views
    B
    Oki, thanks very much, i try to do
  • Stop running graphical effect of QtGraphicalEffects

    1
    0 Votes
    1 Posts
    613 Views
    No one has replied
  • Using qtquick as texture in 3D

    2
    0 Votes
    2 Posts
    2k Views
    B
    I think @ QWidget::createWindowContainer() @ in QT5.1 should do it.
  • Integrating Calender popup in Qt via Qml

    2
    0 Votes
    2 Posts
    1k Views
    J
    I guess this one is related to "integrating Calender popup in Qt via Qml":http://qt-project.org/forums/viewthread/28379/ So you could close this one with [Solved] in the title
  • Calendar via Qml

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Making Flickable react to right mouse button, Qt Quick 2

    1
    0 Votes
    1 Posts
    885 Views
    No one has replied
  • [Solved]Make the icons background become transparent

    4
    0 Votes
    4 Posts
    5k Views
    S
    @rocketchicken, it is not my intention, but thanks for your response @JapieKrekel, thank you, you solve my question.
  • Calling a function from a new state

    3
    0 Votes
    3 Posts
    1k Views
    J
    And in addition to that, if you want to load different data you could use the onStateChanged in your item/component. @ onStateChanged: { if (state == "state1") get_db(3); else if (state == "state2") ... } @
  • ProgressBar doesn't redraw until function returns control

    4
    0 Votes
    4 Posts
    3k Views
    A
    Make sure the intensive C++ code runs in a separate thread then?
  • QML ListView and QSqlTableModel

    3
    0 Votes
    3 Posts
    4k Views
    L
    OK, maybe I should start with easier questions. What kind of QML type is the name of the column that I'm sending to the delegate - variant or string? Also, where is the variable visible - only in the delegate, in the file that contains the delegate and ListView or elsewhere as well? I can't make other files see it and I don't know why. This prevents me from making my ListBox a generalized component. As it stands, I would have to make three different ListBox "classes" with the only difference being the data they pull from the database. There has to be a better way to do this, but how? Could I do it from C++ and how would I go about doing that? Any pointers in the right direction would be really welcome. Cheers, Lucijan
  • Qt Assistant print selection

    1
    0 Votes
    1 Posts
    744 Views
    No one has replied
  • Trigger several overlaping sounds .

    1
    0 Votes
    1 Posts
    645 Views
    No one has replied
  • 0 Votes
    3 Posts
    4k Views
    T
    Thank you, you're amazing :D myGrid.model = myModel; was all I needed, and I don't know why I didn't think of trying that, it just makes sense when I saw it in your post. And I actually was making my ListModels and GridViews as arrays, I just posted a very very simplified version of what I'm doing, and I thought of having separate QML files for my dynamic objects, but the way I'm making it this made the most sense, I need to be able to add variables, like so: @ //Pretend this is inside a Qt.createQmlObject() '//MyDynamicQmlStuff' + i + '//MyDynamicQMLStuffContinued' @ The way I'm creating my app having these components dynamically created is crucial (at least in my head :P ), it's not too difficult though, I just get stuck on these simple little things.
  • MapObjectView is not recognised as a type

    1
    0 Votes
    1 Posts
    599 Views
    No one has replied
  • How to import QtQml.Models 2.1

    1
    0 Votes
    1 Posts
    969 Views
    No one has replied
  • QML sqlite question

    8
    0 Votes
    8 Posts
    4k Views
    L
    OK I will try your suggestion. Thank you all the same.
  • Bypassing binding loops

    3
    0 Votes
    3 Posts
    1k Views
    B
    What I've ended up with is @ Component.onCompleted: { width = modelData.duration * pixelSecondWidth x = modelData.seconds * pixelSecondWidth + 1 } Connections { target: modelData onDurationChanged: { if (!mouse.drag.active) { property.width = modelData.duration * pixelSecondWidth } } onSecondsChanged: { if (!mouse.drag.active) { property.x = modelData.seconds * pixelSecondWidth + 1 } } } onWidthChanged: { if(mouse.drag.active) modelData.duration = width / pixelSecondWidth } onXChanged: { if (mouse.drag.active) modelData.seconds = (x - 1) / pixelSecondWidth } @ I figure there must be a way to do this with Bindings somehow. May play around later. Thinking something like: @ Binding on width { when: mouse.drag.active; value: ...} @
  • 0 Votes
    3 Posts
    2k Views
    T
    Well it looks like my last post was deleted when the server went down last night, so let me sum it up. The problem was my javascript was originally in my QML file, in 'Component.onCompleted: {CODE WAS HERE}', in my javascript code I had a multiline quote such as this: @ Qt.createQmlObject(' DYNAMICALLY GENERATED QML GOES HERE ', parent, myObject); @ When I copied and pasted the javascript into it's own file I needed to escape the literal newlines such as this: @ Qt.createQmlObject(' DYNAMICALLY GENERATED QML GOES HERE ', parent, myObject); @ And that sums it up - _ -