Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • CreateObject initial properties

    6
    0 Votes
    6 Posts
    3k Views
    B
    The behavior described in the original post is not available in 4.7.2. QtQuick 1.1 is not part of the 4.7.2 or the Qt SDK release. You can check the documentation under http://doc.qt.nokia.com/latest for the docs relevant to the latest release.
  • [SOLVED] QML point type

    3
    0 Votes
    3 Posts
    4k Views
    F
    Thank you, this is exactly what I wanted.
  • [SOLVED] Getting anchors from C++

    3
    0 Votes
    3 Posts
    2k Views
    J
    Thanks. This works @ double l = QDeclarativeProperty(child, "anchors.leftMargin").read().toDouble(); @
  • [Moved] Set Graphic background SVG depending on conditional

    3
    0 Votes
    3 Posts
    2k Views
    A
    Thanks - that works perfect!
  • Strange WebView Problem

    4
    0 Votes
    4 Posts
    3k Views
    H
    I worked on this, and i got 2 workarounds that you guys can test . in the code of your web page, you change your html or css to add a background (white) for your web page. you create 2 webviews, and you use a loader to switch these 2 webviews dynamically. this is allowed to avoid overlaps just for the first level of navigation. but another problem arrives, when you navigate in the web page, you can't create another webview one after another to avoid overlaps.
  • Pages, Back Button and "Slide" Animation

    12
    0 Votes
    12 Posts
    10k Views
    P
    Well this is perfect timing for me: http://labs.qt.nokia.com/2011/04/08/qt-quick-components-for-symbian-technology-preview/ I need to check it out a bit more but I think PageStack is exactly what I need. I wonder if it uses Loaders? I am also wondering if it's possible to customise the look and feel or whether I would be stuck with the Symbian native look and feel. Finally, I presume that even if these components aren't officially released in time for the release of my app, then there would be no problem just including the qt-component libs in my SIS or maybe just directly including the source. Paul.
  • 0 Votes
    2 Posts
    4k Views
    M
    Ah, finally a decent status bar :)
  • Image source property change from javascript

    7
    0 Votes
    7 Posts
    5k Views
    S
    The above code didnt work for me. But I had an idea and made a cute code. Please take a look to the following part of qml: @ Image { source: getOutImgSource() function getOutImgSource() { if (loggedIn) return "images/menu-08Loged.png"; else return "images/menu-08.png"; } } @ But it doesnt work to! It looks like the qmlviewer doesnt refresh the graphics. Is it possible? Have you any idea? Edit: please use @ tags around code sections to format them; Andre
  • XmlRole with Flickr API

    5
    0 Votes
    5 Posts
    3k Views
    B
    No, not at the moment. Currently xquery statements can only be used for modifying individual data values, rather than the data model itself.
  • [Solved] Accessing arbitrary model data in QML

    5
    0 Votes
    5 Posts
    5k Views
    M
    It turns out that what I was needing to accomplish was actually easily done by using a ListView. Since what I needed to do was basically have a page of data which updated a number of items based on a given index into a data model, I simply set up a full-page ListView with a delegate widget that was also page-sized. By setting the "interactive" property to false, I could prevent the user from swiping from page to page, and by using the positionViewAtIndex() method, I could immediately jump to the page that contained the appropriate data without the scrolling which would occur by just setting the currentIndex property. Funny how sometimes just putting something aside long enough will give you a fresh perspective on how things can work.
  • PinchArea

    2
    0 Votes
    2 Posts
    3k Views
    M
    A couple things you could try: filtering the data in onPinchUpdated (e.g. only change the rotation when the difference in angle passes a certain threshold) use a MouseArea for the single finger dragging (from memory MouseArea and PinchArea should work well together)
  • QAbstractListModel return a QObject and use it in qml?

    4
    0 Votes
    4 Posts
    7k Views
    M
    Hi, I'd suggest trying https://qt.gitorious.org/qt-labs/qml-object-model -- it has all of the underlying model stuff already implemented for you -- you just need to provide it with the list of objects. Regards, Michael
  • XQuery in XMLListModel or XMLRole

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • [SOLVED] QML/C++ questions

    7
    0 Votes
    7 Posts
    5k Views
    J
    Thanks. That's exactly what I was looking for. It would also be nice to document how one determines that something in the ListView was selected. After a couple more hours yesterday I finally figured out I could add a signal to my QML which would be called from onCurrentIndexChanged and then hook that signal up to a slot in my C++ code.
  • How to choose radix in QML text?

    18
    0 Votes
    18 Posts
    9k Views
    mzimmersM
    [quote]Any console output anywhere? Mistake in connecting the signals perhaps? [/quote] No unexpected console output. In the GUI, the "shaperOutI = " displays OK, but it's blank after that. I implemented the signal just as your example indicated. I was able to step through the shaperOutIstring() call once, and the returned string was null. FWIW... EDIT: it's working now. I made a change, undid the change, and...success. I love it when that happens. I have a few minor tweaks to do, but I think this is solved. Thanks again.
  • QML Serialization

    5
    0 Votes
    5 Posts
    4k Views
    frankcyblogic.deF
    I think you have to write from scratch. There is a QDataStream class in Qt which helps creating your own binary serialization. I think most basic Qt types support QDataStream. Check out QObject::children() and QDeclarativeView::rootObject. Goot luck, would be nice to hear about your solution.
  • 0 Votes
    3 Posts
    2k Views
    A
    The showEvent isn't called and therefore my widget isn't shown. With Qt widget (like QPushButton) the showEvent is called and the QPushButton is shown.
  • Very strange phenomenon in QML animation with openGL

    2
    0 Votes
    2 Posts
    2k Views
    frankcyblogic.deF
    Just a note: The animation timer inside the Animation framework is limited to 60 Hz. Just checked it some days ago on Qt 4.7 . Therefore you won't get more frames, but just more property updates. It's difficult to tell what your problem is about, without knowing the code.
  • [Solved] Change position of ListView

    4
    0 Votes
    4 Posts
    2k Views
    B
    I' sorry mbrasser but you were right! It does work! The problem was I added some qml code that anchors the listview to the parent (which has a smaller height). So my problem is solved, thanks!
  • [Solved]How to Create ListModel in runtime

    5
    0 Votes
    5 Posts
    7k Views
    M
    Thanks for your help. At last i created that object) And i hope the last question is how to manipulate that object? Take parent and compare all it's children to find the object i created, or there is some other way to handle it?