Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Total newbie - is QML compiled

    4
    0 Votes
    4 Posts
    2k Views
    J
    Thanks folks - the link looks like a very interesting (and educational) read. Johnf
  • QJSEngine::newQObject ownership

    2
    0 Votes
    2 Posts
    1k Views
    S
    I finally found a "solution". The documentation says QJSEngine::newQObject uses JavaScriptOwnership. But: this is only the case for QObjects that do not have a parent. So i just set a dummy parent to my objects and now it works.
  • Set two control in same column in Gridlayout

    6
    0 Votes
    6 Posts
    2k Views
    M
    Hi, For your reference i pasted a image file.In that image file the white area is a transparent place.so i want to fit the listview in that transparent area.so i used gridlayout to insert the widget like grid->addwidget(list,0,0,...) grid->addwidget(image,0,0,..) ... .... But i face the index problem in listview.if i click the outside of listview also the list selected. Thanks
  • ListView, delegate; strange behaviour after repaint

    5
    0 Votes
    5 Posts
    2k Views
    W
    thanks. it works now.
  • Embed a qml application inside a webpage

    5
    0 Votes
    5 Posts
    5k Views
    A
    Here is one: https://github.com/PySide/Examples/blob/master/examples/webkit/qml-webkit-plugin/main.py Written in Python, but still interesting as easily translatable into C++. Write me your e-mail in private if you're interested in the slides. I'm highly interested if you have any feedbacks on this method.
  • Qt quick2 how to watch swf/flash in webview element ?

    2
    0 Votes
    2 Posts
    731 Views
    K
    welcome to devnet It is good enough to post in one forum. Please do not "duplicate postings. ":http://qt-project.org/forums/viewthread/29890/
  • 0 Votes
    4 Posts
    5k Views
    SGaistS
    You're welcome ! Don't forget to update the thread's title to solved (prepending it) so other forum users will know that a solution has been found :)
  • [Solved] Growing a Rectangle "leftwards" or "upwards"

    3
    0 Votes
    3 Posts
    1k Views
    JKSHJ
    Great idea, Jens. Thanks!
  • Is it possible to open PDF file in QML ?

    5
    0 Votes
    5 Posts
    9k Views
    JKSHJ
    [quote author="adlike" date="1373602050"]i think this can integrate with many system and open pdf easily.[/quote]That doesn't work with QML. Or even C++.
  • Start animation when app loaded [solved]

    4
    0 Votes
    4 Posts
    1k Views
    D
    You rule portoist
  • Video/media playback (noob question)

    1
    0 Votes
    1 Posts
    576 Views
    No one has replied
  • Program crash when I combine Loader and ProgressBar

    5
    0 Votes
    5 Posts
    2k Views
    S
    Filed it already, thanks for your help. Hope that Qt5 could become more stable with every release
  • Extract Context Properties from C++ Code

    4
    0 Votes
    4 Posts
    1k Views
    sierdzioS
    OK. Parsing the QML is an option, but probably too cumbersome. You would need to do it before loading the QML. Once you load it, it will throw errors on properties that were not included, which is not what you want. What about a "just in time" property inclusion? Instead of adding numerous Q_PROPERTYies, provide an object with something like: @ Q_INVOKABLE QVariant getProperty(const QString &propertyName); Q_INVOKABLE void setProperty(const QString &propertyName, QVariant value); @ But this way you will loose all the NOTIFY goodness. Or you could divide your properties into modules and include them in QML using import statements.
  • [Partially Solved] QML & qmlRegisterType

    5
    0 Votes
    5 Posts
    3k Views
    F
    So, in new qt qiuck2 .0from qt 5.1 i can use qmlRegisterType or not? Can't find information about it. :{ edit: http://doc-snapshot.qt-project.org/qt5-stable/qtquickdialogs/qml-qtquick-dialogs1-filedialog.html
  • 0 Votes
    15 Posts
    6k Views
    JKSHJ
    You're welcome :) Yeah, the "best" code architecture can be different for different purposes. I don't have any direct ideas for now, sorry. But keep learning and asking. Good luck!
  • QML signal problem

    2
    0 Votes
    2 Posts
    1k Views
    D
    Never mind. It is working now, don't know what happened (I did "clean", and then "build" in both DLL and application).
  • Command prompt in Qt

    3
    0 Votes
    3 Posts
    1k Views
    A
    thank you .Sorry...
  • Is there any way to refresh/update a Context Property

    3
    0 Votes
    3 Posts
    2k Views
    M
    thx for answer. i solved this problem by setting the context property each time i update it. i mean @ //helper class.. void onMapUpdated() { this->_viewer->rootContext()->setContextProperty("theMap", theMap); } @ i passed the ApplciaitonViewer object as a paramter to the helper class constructor. it is working now. but im worried about its drawbacks. what can they be? do u have an opinion?
  • Load transparent frame with list control

    1
    0 Votes
    1 Posts
    509 Views
    No one has replied
  • Qt quick example not working

    2
    0 Votes
    2 Posts
    907 Views
    S
    "onClicked" not "onClicke[drive]" @ MouseArea { anchors.fill: parent onClicked: { Qt.quit(); } } @