Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions default/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN adduser --quiet --disabled-password qtuser && usermod -a -G audio qtuser
# This fix: libGL error: No matching fbConfigs or visuals found
ENV LIBGL_ALWAYS_INDIRECT=1

# Install Python 3, PyQt5
RUN apt-get update && apt-get install -y python3-pyqt5
# Install Python 3, PyQt5, chinese fonts support
RUN apt-get update && apt-get install -y python3-pyqt5 fonts-wqy-zenhei

COPY hello.py /tmp/hello.py
2 changes: 1 addition & 1 deletion default/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
w.setWindowTitle("My First Qt App")

# Add a label with tooltip
label = QLabel("Hello World", w)
label = QLabel("Hello World\n你好 世界", w)
label.setToolTip("This is a <b>QLabel</b> widget with Tooltip")
label.resize(label.sizeHint())
label.move(80, 50)
Expand Down
3 changes: 2 additions & 1 deletion qml/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ RUN apt-get update && apt-get install -y \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-ugly \
alsa-base \
alsa-utils
alsa-utils \
fonts-wqy-zenhei

COPY hello.* /tmp/