Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • [Solved] Background for Text in QML

    5
    0 Votes
    5 Posts
    5k Views
    G
    Hi again. If you are not going do to anything with the text, then you could try to just set enabled = false. @ TextEdit { enabled: false text: qsTr("Hello World") anchors.centerIn: parent selectedTextColor: "yellow" selectionColor: "black" Component.onCompleted: selectAll(); } @ At least that worked fine for me.
  • Default application created by Qt Creator does not display its menubar

    2
    0 Votes
    2 Posts
    762 Views
    dheerendraD
    Welcome to the forum. This is the default behaviour as MAC already provides quit button. Since "Quit App" comes by default in MAC, this menu option is taken out as it is not necessary. Just change to "Exit" to "xExit", it works.
  • [Solved] Segfault trying to connect QML signal to CPP slot

    4
    0 Votes
    4 Posts
    1k Views
    dheerendraD
    what was the issue ? Can post your answer here. It helps others in the forum.
  • How to make a QQuickView appear in the main window?

    3
    0 Votes
    3 Posts
    707 Views
    SGaistS
    Hi, Isn't QQuickWidget what you are looking for ?
  • [Solved] Accessing QML children with QObject::findChild

    3
    0 Votes
    3 Posts
    4k Views
    G
    Thanks, this was indeed the problem!
  • Smooth scaled images using rich-text in "Text" element.

    2
    0 Votes
    2 Posts
    560 Views
    p3c0P
    Hi Did you try smooth or antialiasing property ?
  • How to use classes in Qt / QML

    5
    0 Votes
    5 Posts
    3k Views
    I
    Just include QQmlContext
  • 0 Votes
    7 Posts
    3k Views
    C
    Thanks. But is QNetworkAccessManager using somehow cache to store the file? Because it always reads the same content although it has changed in the meantime... Is there a way to clear cache? Or sth similar???
  • QML TableView with custom QAbstractListModel issue

    3
    0 Votes
    3 Posts
    2k Views
    S
    I figured out what the problem was - My ListModel did not directly derive from QAbstractListModel. It derived from a base class that handled display roles for common attributes of a base model. In my TableView I was not using the base roles as they were not required but for some reason TableView expects the number of roles in the list model to match the columns. As a workaround I cleared the roles in my derived class constructor and removed call to BaseListModelClass::getRoleData() from derived class getRoleData and this fixed the problem. Hope this helps for other users.
  • Default Style override to avoid setting style on each widget

    1
    0 Votes
    1 Posts
    902 Views
    No one has replied
  • How to save an image from QML Image element?

    27
    0 Votes
    27 Posts
    30k Views
    jeremy_kJ
    Caching can also be handled with a "QQuickImageProvider":https://qt-project.org/doc/qt-5/qquickimageprovider.htmlQQuickImageProvider. After defining and register a provider, image urls can be written as "image://ProviderName/path/to/image". The same concept exists for Qt 4 in the form of QDeclarativeImageProvider.
  • Folder Creation in SD Card using Qml

    4
    0 Votes
    4 Posts
    1k Views
    p3c0P
    AFAIK, no you can't
  • Scale centered text

    5
    0 Votes
    5 Posts
    1k Views
    N
    The answer is... NO !http://i58.tinypic.com/2qu3xio.png(http://i58.tinypic.com/2qu3xio.png)! Extra pixels still remains! Is this a QML bug?
  • Date Time in qml

    3
    0 Votes
    3 Posts
    3k Views
    B
    thanks p3c0..Its working nw..:-)
  • StackView different pages text display problem

    2
    0 Votes
    2 Posts
    1k Views
    C
    Finally I find the text is rendered OK when I add @renderType: Text.NativeRendering@ to Text, don't know why the default Text.QtRendering doesn't work. Is it a bug?
  • Cannot display qsqlquerymodel to a qml list view

    4
    0 Votes
    4 Posts
    2k Views
    p3c0P
    Wonderful :) You can mark post as solved by editing this post title and prepend [solved] so that others know it has been solved.
  • 0 Votes
    5 Posts
    1k Views
    p3c0P
    bq. I used it just because I didn’t need extra scrolling area services from ListView Well you can disable scroll using "interactive":http://qt-project.org/doc/qt-5/qml-qtquick-flickable.html#interactive-prop property.
  • TableView rowDelegate highlight problem

    2
    0 Votes
    2 Posts
    1k Views
    R
    Well, it turned out it was a simple problem after all. You have to call selection.clear() before calling selection.select.
  • Qt3D installation

    2
    0 Votes
    2 Posts
    1k Views
    JKSHJ
    Hi, Qt 3D is undergoing a major rewrite and is not ready for release yet. See this post: http://lists.qt-project.org/pipermail/development/2013-February/009853.html What are you planning to do? If it's just using custom OpenGL components with Qt Quick, you don't need Qt 3D. Just implement your own Scene Graph (example: http://qt-project.org/doc/qt-5/qtquick-scenegraph-openglunderqml-example.html )
  • Updating Local Storage in WorkerScript

    4
    0 Votes
    4 Posts
    2k Views
    p3c0P
    Yes if you are familiar with c++ go for c++ for such this job. Personally i would always opt for c++ over javascript wherever possible.