跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • 0 評價
    7 貼文
    2k 瀏覽
    H
    @LeLev Many thanks!
  • QQmlEngine.retranslate() blocks main thread

    Unsolved
    8
    0 評價
    8 貼文
    1k 瀏覽
    J.HilkJ
    @jeremy_k you're right, @Witzgy you may get a much faster translation happening when you do the old way of translating / updating translatable strings, with the empty string update: https://wiki.qt.io/How_to_do_dynamic_translation_in_QML also, it would probably help if you do not load all QML components on startup. Dynamically created pages/components fetch the correct language string automatically, and you only need to update those, that are currently created. Thats why I have a StackView as root component, where I keep the stack size to a minimum (always pop before push)
  • Memory increase in Qt Device utilities network settings - boot2Qt

    Unsolved
    2
    0 評價
    2 貼文
    216 瀏覽
    SGaistS
    Hi, Boot2Qt being a commercial offering, you should contact the Qt Company directly.
  • 0 評價
    8 貼文
    6k 瀏覽
    JonBJ
    @Elg1 I don't think anyone/the OP is around any longer to answer from a thread from 5 years ago! Suggest you open your own new thread question.
  • QTQuick Material outlined textfield

    Unsolved
    1
    0 評價
    1 貼文
    130 瀏覽
    尚無回覆
  • Qt 5.15 Depricated: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.

    Solved
    11
    3 評價
    11 貼文
    8k 瀏覽
    S
    @bogong said in Qt 5.15 Depricated: QML Connections: Implicitly defined onFoo properties in Connections are deprecated.: (...) Connections { target: oTarget; function onSignal () { mYourFunction(); } } Hello, Maybe I'm wrong but in Qt Design Studio: Functions are not supported in QtQuick UI form. (M222) ... I don't find a way to use it correctly (I use old form with deprecation warning)
  • signal from C++ with QML property

    Solved
    3
    0 評價
    3 貼文
    221 瀏覽
    P
    Thank you, you are right!!! I donť know why, but i tried QQmlProperty.... QVariantMap didn't think of that Tnank you!
  • 0 評價
    2 貼文
    264 瀏覽
    jsulmJ
    @Elg1 If you use lambdas then you can pass the SpinBox instance as parameter.
  • updating elements in a repeater?

    Solved
    43
    0 評價
    43 貼文
    13k 瀏覽
    ODБOïO
    @mzimmers said in updating elements in a repeater?: Well, bless my buttons...that works! Nice :) @mzimmers said in updating elements in a repeater?: But why is bottleList() declared as returning a QVariant, and not a QVariantList? I don't have a technical explanation for that really, im used to do that since i saw it somewhere in the docs. But i guess you could return a QVariantList directly. It will be converted to javascript array as explained here https://doc.qt.io/qt-5/qtqml-cppintegration-data.html
  • Rendering problem with QML

    Unsolved
    5
    0 評價
    5 貼文
    1k 瀏覽
    GabrielRRG
    @Balaji-Sivakumar Sure, I think those are options you get to make a better rendering on what you are doing currently, if you need further explanation maybe you can check the following documentation: RenderTarget: https://doc.qt.io/qt-5/qml-qtquick-canvas.html#renderTarget-prop RenderStrategy: https://doc.qt.io/qt-5/qml-qtquick-canvas.html#renderStrategy-prop
  • Rectangle radius only on top corners

    Unsolved
    7
    0 評價
    7 貼文
    6k 瀏覽
    fcarneyF
    The OpacityMask is quite a bit more powerful: // masking objects to unique shapes Rectangle { id: mask width: output.width height: output.height color: "transparent" Rectangle { id: corner_mask property real size: parent.width * 0.1 width: size*2 height: size*2 radius: size*2 color: "red" visible: false } Rectangle { id: corner_rect width: corner_mask.width height: corner_mask.height visible: false } ShaderEffectSource { id: shader_effect_mask sourceItem: corner_mask sourceRect: Qt.rect(0,0,corner_mask.width/2,corner_mask.height/2) } OpacityMask { anchors.left: parent.left anchors.top: parent.top width: corner_mask.width/2 height: corner_mask.height/2 maskSource: shader_effect_mask source: corner_rect invert: true } OpacityMask { anchors.right: parent.right anchors.top: parent.top width: corner_mask.width/2 height: corner_mask.height/2 rotation: 90 maskSource: shader_effect_mask source: corner_rect invert: true } Text { width: output.width text: "The OP is from 2018" font.pixelSize: 100 font.bold: true wrapMode: Text.WordWrap horizontalAlignment: Text.AlignHCenter anchors.centerIn: parent } visible: false } // the maskee Rectangle { id: output width: 512 height: 256 color: "steelblue" visible: false } // just do it! OpacityMask { source: output maskSource: mask width: output.width height: output.height invert: true }
  • QtMultimedia 5.12 is not getting imported from submodule

    Unsolved
    2
    0 評價
    2 貼文
    282 瀏覽
    T
    Please let me know if there are any way available to access QtMultimedia from sub module's qml file.
  • "underlaying" a rectangle

    Solved
    17
    0 評價
    17 貼文
    2k 瀏覽
    ODБOïO
    @mzimmers said in "underlaying" a rectangle: I do think my problem comes from using Column instead of ColumnLayout i'm not saying that at all... i don't know where your problems come from since you don't show the code :) the only relevant part of my example is the blue and pink rectangles with their parent, dont pay attention to my ColumnLayout please
  • WinExtras JumpList does not work

    Unsolved
    1
    0 評價
    1 貼文
    240 瀏覽
    尚無回覆
  • 0 評價
    12 貼文
    2k 瀏覽
    BilbonSacquetB
    QSGGeometry * geo2 = new QSGGeometry(QSGGeometry::defaultAttributes_Point2D(), 4); // create geometry The crash is due to the 2D point which is not enough to hold the texture, the call with QSGGeometry::defaultAttributes_TexturedPoint2D() (QSGGeometry::TexturedPoint2D) will solve the issue.
  • QML TextEdit: How can I change the richtext header?

    Unsolved
    1
    0 評價
    1 貼文
    197 瀏覽
    尚無回覆
  • Access colors of a QPalette property

    Solved
    2
    0 評價
    2 貼文
    299 瀏覽
    A
    For anyone with the same issue: The cause here seems to be name shadowing. See https://forum.qt.io/topic/74969/qml-how-to-access-context-property-if-its-name-is-shadowed-by-a-component-local-property
  • Rectangle covering Page header?

    Solved
    4
    0 評價
    4 貼文
    413 瀏覽
    C
    @Mammamia Thank you! This is exactly what I was missing.
  • Artifical mouse events exhibit strange behaviour

    Unsolved
    3
    0 評價
    3 貼文
    283 瀏覽
    jsulmJ
    @aatwo You can file a bug in Qt bug tracker
  • android Qt problems while importing java code

    Unsolved
    1
    0 評價
    1 貼文
    119 瀏覽
    尚無回覆