Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.5k Posts
  • Custom c++ QQuickItem is not visible in QML rendering

    Unsolved
    2
    0 Votes
    2 Posts
    521 Views
    J
    @Ariyo_Walker I have exactly the same problem and I don't know how to figure it out... I'm trying qquickPaintedItem instead of QQuickItem inherit but now I got an error Element is not Creatable Anyone have I idea how can we proceed ? Thanks you in advance
  • QtCharts import problems

    Unsolved
    3
    0 Votes
    3 Posts
    406 Views
    SGaistS
    Hi, Since you are using PyQt6, you should check with their author.
  • Invalid alias reference. Unable to find id ... But, ID is True!

    Unsolved
    3
    0 Votes
    3 Posts
    354 Views
    V
    Yes, you're right, I realized that after the trial. Simply put, the problematic ID is on an Object that is not instantiated, so it would be inaccessible. It's like in C++, you access a non-static member variable of a class but don't newit
  • QJSValue instead of QVariantMap when passing javascript object from QML to C++

    Unsolved
    1
    0 Votes
    1 Posts
    237 Views
    No one has replied
  • 1 Votes
    1 Posts
    228 Views
    No one has replied
  • drag and drop of image

    Unsolved
    1
    0 Votes
    1 Posts
    135 Views
    No one has replied
  • QT5 -> QT6: ASSERT: "!d->offscreenWindow->handle()"

    Unsolved
    1
    0 Votes
    1 Posts
    191 Views
    No one has replied
  • no more return key available while loading virtualkeyboard in the main (qt 6.4)

    Unsolved
    1
    0 Votes
    1 Posts
    108 Views
    No one has replied
  • Material style is shrinking/vanishing images

    Solved
    3
    0 Votes
    3 Posts
    227 Views
    mzimmersM
    @ekkescorner said in Material style is shrinking/vanishing images: @mzimmers in Material there's some padding, There sure is: I put in a telltale for a button of 28 px high, and it has a padding value of 12 (!). Seems like their algorithm needs a bit of work. Thanks for finding that.
  • Qt quick : How to set calendar selectedDate in short format

    Solved
    3
    0 Votes
    3 Posts
    237 Views
    M
    Thank You
  • How to change SystemPalette globally in linux

    Unsolved
    2
    0 Votes
    2 Posts
    324 Views
    A
    I'm still struggling with this, any help is appreciated.
  • How to change a property binding during (after) an element creation in QML ?

    Unsolved
    1
    0 Votes
    1 Posts
    172 Views
    No one has replied
  • QML listview how to set space between header and first item

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    johngodJ
    Use a different delegate for the header with the height of the UserItemDelegate + the space. You dont need to duplicate the code for the two delegates, just create a Item for the header delegate with the user delegate inside.
  • importing multiple styles in one file

    Solved
    9
    0 Votes
    9 Posts
    950 Views
    johngodJ
    Hi @mzimmers In my app I only imported: import QtQuick 2.0 import QtQuick.Controls 2.5 import QtQml.Models 2.15 Then I added a conf file called qtquickcontrols2.conf , in the same resource of the qml files, the content is the following: ; This file can be edited to change the style of the application ; Read "Qt Quick Controls 2 Configuration File" for details: ; https://doc.qt.io/qt/qtquickcontrols2-configuration.html [Controls] Style=Material [Material] Theme=Dark ;Theme=Light ;Accent=BlueGrey ;Primary=BlueGray ;Foreground=Brown ;Background=Grey The syle is defined in this the conf file, but this can be overrided at running with QQuickStyle::setStyle() has you are doing. This works for me.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    9 Views
    No one has replied
  • QStateMachine QML / enums

    Unsolved
    1
    0 Votes
    1 Posts
    301 Views
    No one has replied
  • Unable to display text property on screen

    Solved
    6
    0 Votes
    6 Posts
    920 Views
    J
    The problem has been successfully resolved. But I don't know why this problem is resolved. Problem was "font.bold " I wrote "true" on almost every "font.bold". So, I only left a few, and I fixed most of them to "false." it operated well.
  • JS function not returning expected value

    Unsolved
    5
    0 Votes
    5 Posts
    368 Views
    mzimmersM
    @JoeCFD this is weird: Flickable { id: flickable Layout.fillHeight: true Layout.fillWidth: true clip: true contentHeight: equipmentGrid.height property real netWidth: 0//flickable.width - (scroller.width * 2.0) Component.onCompleted: { netWidth = flickable.width - (scroller.width * 2.0) console.log("flickable.width is " + flickable.width) console.log("netWidth is " + netWidth) console.log("scroller.width is " + scroller.width) } ... qml: flickable.width is 48 // ??? qml: netWidth is 28 qml: scroller.width is 10 Could part of the problem be that my flickable is inside a ColumnLayout?
  • Animation is running very fast on certain mobile device

    Unsolved
    2
    0 Votes
    2 Posts
    224 Views
    L
    I did only observe the same when setting the animation factor to 0.5x in developer options.
  • What protocol using in Map?

    Unsolved
    1
    0 Votes
    1 Posts
    102 Views
    No one has replied