Hi,
I have a question about my system. Here is a summary of the software on my system:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.119-7.5.0-devel-ge5c5595adb06 #1-Torizon SMP PREEMPT Mon Jan 5 09:23:13 UTC 2026
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/0597b6a8bbc8f75687ef4e18e63a0385625ea6359d301e39ad7acea1052b1853/0
Distro name: NAME="Torizon OS"
Distro version: VERSION_ID=7.5.0-devel-20260116151302-build.0
Distro variant: VARIANT="Docker"
Hostname: verdin-imx8mp-15603379
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Plus WB on Mallow Board
Toradex version: 0064 V1.1A
Serial number: 15603379
Processor arch: aarch64
------------------------------------------------------------
I compiled my project starting from the Yocto Project Torizon 7.5. Inside the system, I run two Docker containers:
torizon@verdin-imx8mp-15603379:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
37c47e4f2cd5 torizon/qt6-wayland-examples-vivante:3 "/usr/lib/aarch64-li…" 20 minutes ago Up 20 minutes qt6-demo
406d5b2eecb9 torizon/weston-imx8:4 "/usr/bin/entry.sh -…" 20 minutes ago Up 20 minutes (healthy) weston
I ran the two containers following the instructions in your guide and everything works correctly. On the display connected to the system, I see a demo of a calculator. I wanted to know if there is, or if it is possible to have, a container that works with PySide6, which is the Python version of Qt6, ready to use.
This is my simple example:
import sys
import math
from PySide6.QtWidgets import (
QWidget,
QApplication,
QLabel,
QVBoxLayout
)
from PySide6.QtGui import (
QPainter,
QColor,
QMouseEvent,
QImage,
QPen,
QBrush
)
from PySide6.QtCore import Qt, QPointF
class ModernColorWheel(QWidget):
def __init__(self):
super().__init__()
self.setFixedSize(450, 550)
self.radius = 200
self.center = QPointF(self.width() / 2, self.radius + 30)
self.cursor_pos = QPointF(self.center)
# Label colore selezionato
self.color_label = QLabel()
self.color_label.setFixedSize(200, 50)
self.color_label.setStyleSheet("""
QLabel {
background-color: #FFFFFF;
border-radius: 10px;
border: 2px solid #AAA;
}
""")
layout = QVBoxLayout(self)
layout.setContentsMargins(0, 0, 0, 30)
layout.addStretch()
layout.addWidget(
self.color_label,
alignment=Qt.AlignHCenter | Qt.AlignBottom
)
self.wheel_image = self.create_color_wheel(
self.radius * 2,
self.radius * 2
)
# Creazione ruota colori
def create_color_wheel(self, width, height):
image = QImage(width, height, QImage.Format_ARGB32)
cx = width / 2
cy = height / 2
for x in range(width):
for y in range(height):
dx = x - cx
dy = y - cy
r = math.hypot(dx, dy)
if r <= self.radius:
angle = math.degrees(math.atan2(dy, dx))
if angle < 0:
angle += 360
sat = int((r / self.radius) * 255)
color = QColor()
color.setHsv(int(angle), sat, 255)
image.setPixelColor(x, y, color)
else:
image.setPixelColor(x, y, QColor(0, 0, 0, 0))
return image
# Paint event
def paintEvent(self, event):
painter = QPainter(self)
painter.setRenderHint(QPainter.Antialiasing)
painter.fillRect(self.rect(), QColor(30, 30, 30))
painter.drawImage(
int(self.center.x() - self.radius),
int(self.center.y() - self.radius),
self.wheel_image
)
painter.setPen(QPen(Qt.white, 3))
painter.setBrush(QBrush(Qt.black))
painter.drawEllipse(self.cursor_pos, 10, 10)
painter.setPen(Qt.NoPen)
painter.setBrush(QColor(0, 0, 0, 100))
painter.drawEllipse(self.cursor_pos + QPointF(2, 2), 10, 10)
# Mouse press
def mousePressEvent(self, event: QMouseEvent):
self.update_cursor(event.position())
# Mouse move
def mouseMoveEvent(self, event: QMouseEvent):
if event.buttons() & Qt.LeftButton:
self.update_cursor(event.position())
# Update cursore
def update_cursor(self, pos: QPointF):
dx = pos.x() - self.center.x()
dy = pos.y() - self.center.y()
r = math.hypot(dx, dy)
if r > self.radius:
dx = dx * self.radius / r
dy = dy * self.radius / r
self.cursor_pos = QPointF(
self.center.x() + dx,
self.center.y() + dy
)
self.update()
angle = math.degrees(math.atan2(dy, dx))
if angle < 0:
angle += 360
sat = int((math.hypot(dx, dy) / self.radius) * 255)
color = QColor()
color.setHsv(int(angle), sat, 255)
self.color_label.setStyleSheet(f"""
QLabel {{
background-color: {color.name()};
border-radius: 10px;
border: 2px solid #AAA;
}}
""")
# MAIN
if __name__ == "__main__":
print("Start demo")
app = QApplication(sys.argv)
window = ModernColorWheel()
window.setWindowTitle("Color Wheel")
window.show()
sys.exit(app.exec())
I have no idea how to make it work correctly on the system.
Thanks for the help.
Fabio