Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • QML video element could not read from resource

    2
    0 Votes
    2 Posts
    2k Views
    A
    Don't you need to add port to the rtsp source ?
  • 0 Votes
    3 Posts
    809 Views
    L
    second, that database name doesn't look correct. the only db driver that needs file path is sqlite. third, no user name.
  • My TableView Doesn't work

    12
    0 Votes
    12 Posts
    4k Views
    L
    What have you tried and doesn't work? We need more information. 'Doesn't work' is not helpful. If you have read the article, right at the end he showed a generic class extending QSqlQueryModel that is usable from QML. I tested it against Qt 5.2, and yes it does work. Granted, with little work as QAbstractItemModel::setRoleNames was deprecated, you have to reimplement QAbstractItemModel::roleNames instead, but that is 1 minute work.
  • QML: superscript/subscript text

    4
    0 Votes
    4 Posts
    3k Views
    SGaistS
    Hi, They don't but Qt is big and the developer teams have only so many members. However, you can help getting the bug fixed by voting for it and make it known that it's still an issue in the latest version.
  • How to add integers into array

    4
    0 Votes
    4 Posts
    3k Views
    SGaistS
    Then you should first get yourself familiar with c++ and Qt before rushing the port. Start by a small simple function and don't forget to add tests to ensure your code is working properly. On a side note, it's Qt, QT stands for Apple QuickTime
  • Swipe Gesture with Qt Quick 2.0 and Qt 5.2

    6
    0 Votes
    6 Posts
    6k Views
    D
    Thanks for your reply, going to try it :)
  • QQuickWidget and TextInput or TextField not working in Qt 5.3.0 RC

    2
    0 Votes
    2 Posts
    946 Views
    A
    Nobody some hint? Can someone ackknowledge that TextInput in QQuickWidget QT5.3.0 RC is working?
  • [Solved] Code editor using QML

    8
    0 Votes
    8 Posts
    7k Views
    Q
    Thanks. That's all very interesting, appreciate the info.
  • Performance rendering performance in QML SequentialAnimation

    2
    0 Votes
    2 Posts
    1k Views
    S
    Hi, I looked into it but I could not really figure out how the animations are managed. Maybe anohter strategy would be to aim ata lower level in QT. Is there a way to set the maximum rendering frame rate? Which reduce the computation ressource?
  • 0 Votes
    10 Posts
    3k Views
    A
    Seems that the issues are fixed in qt 5.3 alpha/beta
  • Drag a copy of an item to Droparea

    7
    0 Votes
    7 Posts
    5k Views
    M
    Thank you I will take a look and try to figure it out. Thank you again.
  • How to rotate and change location of a png in GraphicsView

    1
    0 Votes
    1 Posts
    561 Views
    No one has replied
  • 0 Votes
    4 Posts
    3k Views
    T
    I should also note that the window itself does show, and any components (such as a text area) I put in it will show as well, just not the menu bar. In case it makes a difference I'm on Ubuntu 14.04
  • Increase sampling rate ( interp(); function in MATLAB )

    2
    0 Votes
    2 Posts
    2k Views
    JKSHJ
    Hi, Qt does not offer advanced mathematical functions. You have 3 options (from simplest to hardest): Interpolate your data in MATLAB before passing it to Qt Link your Qt project to a mathematical library like "GSL":http://www.gnu.org/software/gsl/ "Write your own interpolation functions":http://books.google.com/books?id=gwijz-OyIYEC&pg=PA36&dq=interpolation
  • How to preserve TextField binding when user manually edits value

    3
    0 Votes
    3 Posts
    1k Views
    R
    That's exactly what I was looking for. I still don't understand why the binding is lost, but I'm really after the correct way of coding QML and using an alias is much simpler than what I was doing. In fact in my actual code I will create an alias to each top level item (i.e TextField and similar objects) and that way the user of the component can have access to anything they want. Thank you very much.
  • How to get HID device and interact with the hid device

    1
    0 Votes
    1 Posts
    740 Views
    No one has replied
  • Can a QML file refresh a JS import at runtime?

    2
    0 Votes
    2 Posts
    1k Views
    L
    Yes. use Qt.Include() see "this":http://qt-project.org/doc/qt-5/qtqml-javascript-imports.html#including-a-javascript-resource-from-another-javascript-resource
  • Is there a way to change front/back properties in a Flipable?

    3
    0 Votes
    3 Posts
    983 Views
    B
    [quote author="sierdzio" date="1400221623"]Change the source of the image, not the object. Or use a Loader.[/quote] Well, yesterday I tried something like that (not with an Image), but it gave me an error saying that I couldn't modify read-only properties; I figured since the front/back were write-only, they're children properties were read-only. Now I just tried changing the source of the Image and it worked just fine. I don't know what I was doing wrong yesterday. But the Image was just an example. What I really need is a way to change insert a view created and istantiated from C++ into the front/back properties. I was messing with the the Loader a few moments ago, and it might look the thing I need, except that I can't load the new view created from C++ with that because the component is actually instantiated in the C++ side...
  • [SOLVED]Dynamic Binding of QML Object and Factory created C++ object

    5
    0 Votes
    5 Posts
    4k Views
    L
    GOT IT. this worked: @ onClicked: { var component = Qt.createComponent("master_item.qml"); if (component.status == Component.Ready) { var tab = tabview.addTab("tab " + (tabview.count + 1), component); if (tab.status == Loader.Ready) { tab.item.obj = products.get("CR2001W"); } else { tab.loaded.connect(function() { console.log("this will be executed when corresponding tab is on focus"); if (tab.status == Loader.Ready) { tab.item.obj = products.get("CR2001W"); } }); } } } @ by extension, I should be putting callbacks on component.statusChanged as well... this gets ugly pretty fast. Refactor this on different JS file? how about my Products factory object? will it be available from js? Can I even put imports in plain js?
  • 0 Votes
    1 Posts
    796 Views
    No one has replied