Displaying Panda Images with PyQt6 Lists
A simple viewer can be built by combining a QListView with a QLabel. The list holds pandda names; clicking an entry updates the displayed photo.
First, create the data model and the list view. Use QStringListModel to hold the names and attach it to the list:
names = ['Fu Bao', 'Meng Lan', 'Jin Hu']
model = QStringListModel(names)
list_view = QL ...
Posted on Sun, 02 Aug 2026 16:11:20 +0000 by missyevil
QTextBrowser vs QLabel in Qt Applications
When working with label widgets in Qt applications, QLabel is often the first choice due to its built-in support for word wrapping and rich text parsing. However, I discovered limitations with QLabel's line-breaking behavior that prompted me to explore alternatives.
Specifically, QLabel prevents splitting individual chraacters across lines, whi ...
Posted on Tue, 28 Jul 2026 16:45:26 +0000 by jokkis
Building a yt-dlp GUI Application with Tkinter and Python
VideoDownloader is a desktop application built around the yt-dlp Python library, offering a graphical interface for downloading videos and audio from thousands of supported platforms. Unlike the command-line-only yt-dlp, this tool wraps its functionality in a tkinter-based UI to simplify usage—elimintaing the need to memorize or type complex CL ...
Posted on Mon, 27 Jul 2026 16:47:38 +0000 by illuz1on
Building a Text Editor: Framework Implementation with Qt
QMainWindow serves as the foundation for many desktop applications, providing a comprehensive window structure with various UI components. It includes a menu bar, multiple toolbars, dockable widgets, a status bar, and a central widget. This architecture makes it ideal for applications like text editors and image processing tools.
Key Components ...
Posted on Wed, 22 Jul 2026 16:39:43 +0000 by jawapro
Implementing Avatar Upload Functionality in Qt
Many users have encountered the avatar upload feature in Qt. Figure 1 should be familiar to most. This article demonstrates how to simulate a similar function, although it may not offer all the advanced features, it can fulfill basic requirements.
Figure 1: QQ image upload
Before diving into the functionality, I recommend reading a article on i ...
Posted on Wed, 15 Jul 2026 16:29:41 +0000 by jkurrle
Building a Custom Calendar Widget in Qt: Date Selection and Dropdown Integration
1. Background
Before diving into this article, let me briefly review the previous two articles on custom calendar implementation. The link are provided in the related links section at the end. The first article demonstrated using QLabel contrlos to construct a calendar—easy to understand but with suboptimal performance. The second approach rend ...
Posted on Tue, 14 Jul 2026 16:00:52 +0000 by sarahk
Building a Custom Java Swing Login Interface
Developing a professional-looking login screen in Java Swing often requires moving beyond default components. By combining custom UI delegates, manual layout management, and refined visual properties, you can create a unique user experience. This example demonstrates how to structure a login window with custom input fields, interactive buttons, ...
Posted on Fri, 10 Jul 2026 16:54:38 +0000 by CodeX
Developing a TCP Chat Server Interface Using Qt Network
Establishing reliable network communication requires configuring a TCP server capable of managing multiple client connections simultaneously. The Qt Network module provides the necessary classes, specifically QTcpServer and QTcpSocket, to handle low-level socket operations within a GUI application.
Server Architecture Design
The server applicat ...
Posted on Thu, 09 Jul 2026 17:07:49 +0000 by rawb
JavaFX Fundamentals: Stage, Scene, and Event Handling
Stage, Scene, and Controls
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import java.util.Collections;
public class JavaFXDemo extends Application {
public static void main(String[] args) {
...
Posted on Tue, 07 Jul 2026 17:44:38 +0000 by PerfecTiion
Building a Cross-Device Android Automation Tool with Python, Tkinter, and ADB
The initial version of the automation script fulfilled basic functionality but lacked a user interface, required manual coordinate adjustments for taps, and was not adaptable across devices with different screen resolutions. To address these limitations, the following enhancements are implemented:
Introduce a graphical user interface (GUI) to ...
Posted on Tue, 07 Jul 2026 17:02:16 +0000 by joshuaceo