Qt open source works | young man, write a Launcher for your Linux system
Today, I'd like to share with you how to implement a launcher (program launcher) with Qt.
Operation effect:
github link:
https://github.com/alamminsalo/qml-launcher
There is little code, and the C + + part is about 100 lines of code.
The following is the implementation process.
1. Create QML application
In Qt Creator, click:
-> ...
Posted by billcoker on Thu, 10 Feb 2022 06:17:52 +0100
Static compilation of QT based on different CPU architectures and related problems
Recently, when compiling linux client, there was a bottleneck. Different CPU + operating system + kernel versions caused more and more cumbersome client maintenance. In order to improve maintenance efficiency and reduce maintenance cost, we decided to adopt static compilation. Because it was years ago, many errors encountered during compilation ...
Posted by CWebguy on Wed, 09 Feb 2022 18:57:32 +0100
Qt Road 2 -- signal and slot
Signal slot is one of the mechanisms that Qt framework is proud of. Skillfully use and understand the signal slot, and be able to design a very beautiful decoupling program, which is conducive to enhancing our technical design ability.
The so-called signal slot is actually the observer mode. When an event occurs, for example, a button detects ...
Posted by TweetyPie on Wed, 09 Feb 2022 11:24:17 +0100
Qt learning notes
1, Start with Hello World
Cited examples
#include <QApplication>
#include <QLabel>
int main(int argc, char* argv[])
{
//Creating a QApplication instance is essential
QApplication app(argc, argv);
//Create a QLabel instance and assign Hello, world text to the constructor so that this text can be displayed on QLabe ...
Posted by ahsan on Wed, 09 Feb 2022 01:19:27 +0100
QThread of Qt multithreading
In the project, a QThread object manages a thread. Generally speaking, the execution of a thread starts with the run () function. In Qt, there are two ways. The first is to inherit QThread and rewrite run() function. The second is to inherit QObject function and add time-consuming operations, and then call QObject::moveToThread() function. It i ...
Posted by deolsabh on Tue, 08 Feb 2022 04:47:49 +0100
Qt introduction series development tutorial [basic controls] QSpinBox rotating box
describe
QSpinBox is designed to handle integer and discrete value sets (for example, month names); Use QDoubleSpinBox for floating-point values. QSpinBox allows the user to increase / decrease the currently displayed value by clicking the up / down button or pressing the up / down key on the keyboard. You can also enter values manually. ...
Posted by fourteen00 on Fri, 04 Feb 2022 07:54:10 +0100
Qt -- 19 modal and modeless dialog boxes
What are modal and modeless dialog boxes
I can't click other functions and interfaces. This kind of dialog box is called modal dialog box. There are some windows that can operate other windows, which belong to modeless dialog boxes.
Next, create a new project. After the project is created, build the form as shown in the following figure in ...
Posted by satya61229 on Thu, 03 Feb 2022 20:42:10 +0100
C + + simple FTP client programming
Basic FTP client
FTP download client implemented by QT C + +
Environmental description
FTP server: centos7 8 + vsftpd 3.0.2 installation settings see blog
CentOS vsftpd settings
Client: win10+QT 5.15.2
The implementation is not a fully functional FTP client, but the program has the need to download files from the FTP server. It mainly rea ...
Posted by bernouli on Wed, 02 Feb 2022 09:27:24 +0100
QT -- serial port reads data and displays real-time waveform
1. Read data through serial port
With the lower computer, MCU communication is inseparable from using serial port for communication. Qt also provides the class of serial port communication.
When using, add this sentence import module in pro
QT += serialport
1. The first step to connect serial ports is to obtain the names of all serial ports ...
Posted by techbinge on Wed, 02 Feb 2022 00:34:44 +0100
QT embedded Linux arm porting
1, Environmental preparation
Compilation environment: Ubuntu 20 . 04 (Download address: https://ubuntu.com/download/desktop)
QT Source code( QT5.9.5 Download address: https://download.qt.io/archive/qt/5.9/5.9.5/)
Cross compiler( arm-2014.05)
2, Compilation preparation
1.decompression qt Source code
2.Configure the path of the cross compiler ...
Posted by designxperts on Tue, 01 Feb 2022 20:59:03 +0100