跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • How ignore MouseArea?

    5
    0 評價
    5 貼文
    2k 瀏覽
    B
    Hi Gennon is right. on pressed you can reduce the z-value to less than back z mouse area.so that at that point of time back button mouse area will be focussed. And when back button mouse area is clicked u can do vice versa... Thanks
  • [Solved] Restrict Image to rectangle when Zoomed in

    8
    0 評價
    8 貼文
    2k 瀏覽
    B
    Hi adding *clip: true *does solve my problem in above code. Thanks for ur assistance p3c0 Thanks.
  • [Solved] Background for Text in QML

    5
    0 評價
    5 貼文
    5k 瀏覽
    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 評價
    2 貼文
    772 瀏覽
    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 評價
    4 貼文
    1k 瀏覽
    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 評價
    3 貼文
    724 瀏覽
    SGaistS
    Hi, Isn't QQuickWidget what you are looking for ?
  • [Solved] Accessing QML children with QObject::findChild

    3
    0 評價
    3 貼文
    4k 瀏覽
    G
    Thanks, this was indeed the problem!
  • Smooth scaled images using rich-text in "Text" element.

    2
    0 評價
    2 貼文
    565 瀏覽
    p3c0P
    Hi Did you try smooth or antialiasing property ?
  • How to use classes in Qt / QML

    5
    0 評價
    5 貼文
    3k 瀏覽
    I
    Just include QQmlContext
  • Using a timer in qml, the signal of downloading a file is emitted multiple times...

    7
    0 評價
    7 貼文
    3k 瀏覽
    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 評價
    3 貼文
    2k 瀏覽
    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 評價
    1 貼文
    912 瀏覽
    尚無回覆
  • How to save an image from QML Image element?

    27
    0 評價
    27 貼文
    30k 瀏覽
    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 評價
    4 貼文
    1k 瀏覽
    p3c0P
    AFAIK, no you can't
  • Scale centered text

    5
    0 評價
    5 貼文
    1k 瀏覽
    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 評價
    3 貼文
    3k 瀏覽
    B
    thanks p3c0..Its working nw..:-)
  • StackView different pages text display problem

    2
    0 評價
    2 貼文
    1k 瀏覽
    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 評價
    4 貼文
    2k 瀏覽
    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 評價
    5 貼文
    1k 瀏覽
    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 評價
    2 貼文
    1k 瀏覽
    R
    Well, it turned out it was a simple problem after all. You have to call selection.clear() before calling selection.select.