跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • Graph in real time

    Unsolved
    2
    0 評價
    2 貼文
    228 瀏覽
    J.HilkJ
    @Gabriela20 https://doc.qt.io/qt-5/qtcharts-qmlchart-example.html beware of the license though, QtCharts in GPL and commercial only
  • Hi, I want to build a transparent windows with mouse event in QML QtQuick2

    Unsolved
    7
    0 評價
    7 貼文
    3k 瀏覽
    C
    @Markkyboy Hello, My problem is the opposite. I want to make this entirely on Qt (and pyside2 that I know) not Qt Quick that I don't know. (I do this for hobby I'm not a professional developer) Do you have any insight to give me? I would like to make a transparent window and I would love to be able to click other windows below. Up until now I discovered Qt.WindowTransparentForInput | Qt.WindowStaysOnTopHint Qt.WA_TranslucentBackground With the above I get a decorated window that I can move around within my monitor like in the photo below. This is what I I want, but I cannot interact with the window below. I also discovered that I need Qt.FramelessWindowHint with this I can successfully interact with windows below (say z-index in an CSS fashion), like firefox, telegram or libreoffice. this solves the latter problem of not being able to interact with the window below, but this time I get a frameless window (like the property suggests! :) , but that I don't want...), and I cannot move or resize it, which I need. How can I combine the two features? Thanks [image: 0e00f0c7-7f30-4a81-8f7e-369219ee4ef0.jpg]
  • Simple QQuickItem mouseMoveEvent not working

    Unsolved
    1
    0 評價
    1 貼文
    321 瀏覽
    尚無回覆
  • 0 評價
    5 貼文
    4k 瀏覽
    F
    OK I did it. As I assumed the third party librarie has a deep impact of the QDebug-Infrastructure and catches all messages after the first time the library is used. There was no need to configure in QtCreator or something else except in the config of these other libraries. Now I get the messages back in the IDE Application Output. I hope that will help other poeple finding debugging problems.
  • How to properly link C++ model to QML front end when Interfacing with a server

    Unsolved
    1
    0 評價
    1 貼文
    208 瀏覽
    尚無回覆
  • Prevent QML Text element from stripping whitespace

    Unsolved
    1
    0 評價
    1 貼文
    271 瀏覽
    尚無回覆
  • QML Loader loads components faster than property assignment

    Solved
    3
    0 評價
    3 貼文
    594 瀏覽
    J.HilkJ
    @Hamzan-Martinez Do not delete the topic, when someone took the time and effort to provide you with a working answer!
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    7 瀏覽
    尚無回覆
  • How to write data into JSON?

    Unsolved
    2
    0 評價
    2 貼文
    2k 瀏覽
    JonBJ
    @lakshmanGiri You are opening the file for append when writing back. This cannot be right, if you look at what you want it is not simply an append to what you had. You must read in the existing JSON, create the objects in memory, do your work (find the node you want to append to and append an object in memory), then finally write the whole of the new JSON out to the file, completely overwriting what was there.
  • Pass QMap type to QML

    Unsolved
    4
    0 評價
    4 貼文
    2k 瀏覽
    K
    @Vinoth-Rajendran4 QML works well with QVariantMap
  • How to get the REAL desktop size WITHOUT the areas occupied by Windows?

    Unsolved
    1
    1 評價
    1 貼文
    152 瀏覽
    尚無回覆
  • How to make a QQuickItem which will route mouse events to other QuickItem?

    Unsolved
    1
    0 評價
    1 貼文
    226 瀏覽
    尚無回覆
  • Change QML Screen from C++ thread

    已移動 Unsolved
    8
    0 評價
    8 貼文
    659 瀏覽
    Pablo J. RoginaP
    @JaviRodriguez I'd suggest to go through the documentation referred before again. Pay attention to the C++ signal and how that signal is handled in QML
  • Passing an Array of Objects from QML to C++

    Unsolved
    5
    0 評價
    5 貼文
    526 瀏覽
    DuBuD
    Wow, QVariantList with QVariantMap as contained variants works. Thanks a lot!
  • Replicating Microsoft's Acrylic

    Unsolved
    3
    0 評價
    3 貼文
    1k 瀏覽
    LorenDBL
    @Markkyboy: the problem with your implementation is that it is missing the blur effect. I did some fooling around recently and came up with this: import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Controls 2.12 import QtGraphicalEffects 1.0 Window { id: root color: "white" visible: true width: 640 height: 480 title: qsTr("Hello World") Image { id: img source: "qrc:/msofttest.png" anchors.fill: parent fillMode: Image.PreserveAspectCrop Rectangle { id: rect color: "white" opacity: 0.6 anchors.left: parent.left anchors.top: parent.top width: parent.width height: parent.height * 0.6 } ShaderEffectSource { id: ses anchors.centerIn: rect width: rect.width height: rect.height sourceItem: img sourceRect: Qt.rect(x, y, width, height) } GaussianBlur { source: ses anchors.fill: ses radius: 64 samples: 1 + radius * 2 // as per Qt docs } } } which produces: [image: adf59ebf-a904-42c1-bc81-2df508509764.png] (msofttest.png is the first image under "Acrylic Blend Types" in the Windows docs.) Using a different image produces a similar effect. Here I show an Acrylic-esque rectangle in the middle of the image using the following Rectangle instead of the one used earlier: Rectangle { id: rect color: "white" opacity: 0.4 anchors.centerIn: parent height: parent.height / 2 width: height } [image: 97528199-990c-4d1d-ad91-821584e43c6d.png] This gives me something that I can go off of to create in-app Acrylic. However, I'm still not sure how to do what I really wanted to do: use Acrylic as the app's background (this site has some screenshots of what I'd like to do, although it's XAML instead of QML). (I realize that I may not have clearly stated that I wanted the window background in Acrylic; I've updated my first post to be more specific.)
  • Access a StackView from a different QML file

    Solved qml export access module
    3
    0 評價
    3 貼文
    2k 瀏覽
    LorenDBL
    @sierdzio setting an alias for the StackView and then calling root.stack.push worked for me. Thanks!
  • Add data points to Map with MapItemView from C++

    Unsolved
    1
    0 評價
    1 貼文
    193 瀏覽
    尚無回覆
  • Get notified that object gonna be destroyed

    Unsolved
    4
    0 評價
    4 貼文
    1k 瀏覽
    JonBJ
    @morte If I understand correctly: I don't know what myObject is. But if you want to be notified of Banner's destruction you are supposed to slot onto Banner::destroyed() rather than myObject::destroyed(), if that is what you are doing.
  • StackView icon on Android

    Solved
    18
    0 評價
    18 貼文
    2k 瀏覽
    B
    @KroMignon said in StackView icon on Android: Perhaps you should use pictures or try with fontawesome? If it doesn't work with fonts, then I'll do it. @LorenDB . Could you please send me your StackView sample apk? Ill try to deploy it on problem devices. I reproduce this bug from Linux host. Prev tests was from Win 10. Now this looks like a problem with the devices OS. But it is very strange that with two at once..
  • ScrollView with empty TextArea

    Solved
    3
    0 評價
    3 貼文
    631 瀏覽
    F
    @LeLev Thank you very much! This worked flawlessly!