Qt 6.11 is out! See what's new in the release
blog
alignment problem with DayOfWeekRow and WeekNumberColumn
-
Hello everyone,
I am sour MAC OS and I create a QML Python application
I'm making a calendar widget, with QTCreator.
No particular problem at runtime when I launch my application with QtCreator.

But if I run it from a terminal with the python3 main.py command I have alignment problems for the widgets DayOfWeekRow and WeekNumberColumn.

Does anyone have an explanation?
Thanks
This my code
WeekNumberColumn { id: week_col anchors.top: corner.bottom anchors.left: parent.left implicitWidth: corner.width implicitHeight: 222 //spacing: 1 leftPadding: 0 rightPadding: 0 month: month_grid.month year: month_grid.year locale: dateTimeLLocale delegate: Text { Layout.fillWidth: true Layout.fillHeight: true text: weekNumber font: week_col.font color: Material.foreground horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter required property int weekNumber } contentItem: Rectangle { color: Material.color(couleur, Material.Shade200) //border.color: "black" ColumnLayout { anchors.fill: parent spacing: week_col.spacing Repeater { model: week_col.source delegate: week_col.delegate } } } } //1-7 DayOfWeekRow { id: week_row anchors.top: choixMois.bottom anchors.left: corner.right anchors.right: parent.right implicitHeight: corner.height spacing: 0 topPadding: 0 bottomPadding: 0 locale: Qt.locale("fr_FR") delegate: Text { Layout.fillWidth: true Layout.fillHeight: true text: shortName font: week_row.font color: Material.foreground horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter required property string shortName } contentItem: Rectangle { //color: Material.backgroundColor color: Material.color(couleur, Material.Shade200) RowLayout { anchors.fill: parent spacing: week_row.spacing Repeater { model: week_row.source delegate: week_row.delegate } } } }