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 High-Fidelity Excel-Style Table Component in Qt
Entroduction
Developing spreadsheet-like functionality within Qt applications often requires custom widget compositions, particularly when features such as frozen panes, auto-resizing rows, and cell merging are needed. While standard QTableView provides robust data display capabilities, it lacks native support for locking specific rows or colum ...
Posted on Mon, 13 Jul 2026 16:50:37 +0000 by Valect
Interactive Elevation Profile Rendering with Qt Charts
Storing altitude measurements within tree widget node metadata enables dynamic elevation plotting upon user interaction. The following implementation demonstrates chart view integration and synchronized selection handling.
Header Configuration
#include <QChartView>
#include <QValueAxis>
#include <QLineSeries>
QT_CHARTS_USE_NA ...
Posted on Sat, 11 Jul 2026 16:22:04 +0000 by Diggler
Implementing Network Communication in Qt with TCP and UDP
TCP Communication in Qt
TCP Programming Charatceristics
Requires both server and client components
Add QT += network to project file
Key classses: QTcpServer and QTcpSocket
TCP Server Implementation
Project Configuration
QT += core gui network
UI Components
Read-only receive text area
Port number input field
Message input field
Action butto ...
Posted on Fri, 10 Jul 2026 16:59:41 +0000 by Floydian
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
Qt Signals and Slots Communication Mechanism
Signals and Slots Fundamentals
Signals and slots form Qt's event-driven communication system between objects:
Signals: Events emitted by objects (e.g., button click notification)
Slots: Receiver functions that respond to signals (e.g., light activation method)
Connections: Links signals to slots using QObject::connect()
Connection Syntax
// M ...
Posted on Tue, 07 Jul 2026 16:39:38 +0000 by freakuency
Building a Resizable and Detachable Panel UI Framework with QML
Overview
This article demonstrates how to create a QML-based UI framework with resizable panels that can be dragged out as independant floating windows. The implementation uses QtQuick.Controls 2.14 and addresses two core requirements: flexible panel sizing and window detachment functionality.
Requirements:
Modular interface with adjustable pa ...
Posted on Mon, 06 Jul 2026 16:59:51 +0000 by tnkannan
Qt Model-View Architecture: Data Roles and Multi-View Synchronization
Qt's model-view architecture decouples data storage from presentation, enabling multiple views to share and display the same underlying model. This separation allows for flexible UI composition—such as simultaneously rendering hierarchical, tabular, and list representations of identical data—while preservign consistency and reducing redundancy. ...
Posted on Sun, 05 Jul 2026 17:12:52 +0000 by JaGeK
Understanding Qt’s Parent-Child Inheritance and Memory Management
Object Hierarchy and Ownership
In the Qt framework, memory management relies heavily on the hierarchical relationship between objects. Unlike standard dynamic allocation where developers must manually track every pointer, Qt introduces an implicit ownership mechanism through parent-child links.
Every instance derived from QObject maintains refe ...
Posted on Sun, 05 Jul 2026 17:03:28 +0000 by smarty_pockets
Sharing State Across QML Components Using a C++ Singleton Model
When developing complex Qt Quick applications, maintaining synchronized state across multiple QML components often requires a shared data model. Declaring independent ListModel instances within separate QML files leads to data fragmentation. A robust solution involves implementing a C++ backend model derived from QAbstractListModel managed as a ...
Posted on Sun, 05 Jul 2026 16:33:21 +0000 by rtconner