Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • QTQuick Material outlined textfield

    Unsolved
    1
    0 Votes
    1 Posts
    130 Views
    No one has replied
  • 3 Votes
    11 Posts
    8k Views
    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 Votes
    3 Posts
    220 Views
    P
    Thank you, you are right!!! I donť know why, but i tried QQmlProperty.... QVariantMap didn't think of that Tnank you!
  • 0 Votes
    2 Posts
    264 Views
    jsulmJ
    @Elg1 If you use lambdas then you can pass the SpinBox instance as parameter.
  • updating elements in a repeater?

    Solved
    43
    0 Votes
    43 Posts
    13k Views
    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 Votes
    5 Posts
    1k Views
    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 Votes
    7 Posts
    6k Views
    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 Votes
    2 Posts
    277 Views
    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 Votes
    17 Posts
    2k Views
    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 Votes
    1 Posts
    240 Views
    No one has replied
  • 0 Votes
    12 Posts
    2k Views
    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 Votes
    1 Posts
    197 Views
    No one has replied
  • Access colors of a QPalette property

    Solved
    2
    0 Votes
    2 Posts
    298 Views
    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 Votes
    4 Posts
    411 Views
    C
    @Mammamia Thank you! This is exactly what I was missing.
  • Artifical mouse events exhibit strange behaviour

    Unsolved
    3
    0 Votes
    3 Posts
    283 Views
    jsulmJ
    @aatwo You can file a bug in Qt bug tracker
  • android Qt problems while importing java code

    Unsolved
    1
    0 Votes
    1 Posts
    119 Views
    No one has replied
  • QML Image: TLS initialization failed

    Solved
    24
    0 Votes
    24 Posts
    4k Views
    tomyT
    @qcoderpro Put your image element inside a window element. It's required to me.
  • Qt eglfs input does't work without root

    Unsolved
    1
    0 Votes
    1 Posts
    152 Views
    No one has replied
  • Android soft keyboard action button

    Unsolved imeoptions android spinbox dialog
    5
    1 Votes
    5 Posts
    3k Views
    A
    Thanks so much for posting this result! This worked for me in QT 5.14.2 @seyed said in Android soft keyboard action button: NOTE: Action button of the Android soft keyboard is same as return button which you can control it in XML layout file with 'imeOptions' attribute. Can you elaborate on this? I'm working on Android and am not seeing the 'Done' button changing as expected, but I do see in the QT Docs: Note: Not all of these values are supported on all platforms. For unsupported values the default key is used instead.
  • What is Application QML Type, why Qt Creator autocompletes it?

    Solved
    2
    0 Votes
    2 Posts
    182 Views
    M
    Looks like it is Qt Creator bug, have created bugreport for it https://bugreports.qt.io/browse/QTCREATORBUG-25435