当前位置:网站首页>The process of creating custom controls in QT to encapsulating them into toolbars (II): encapsulating custom controls into toolbars

The process of creating custom controls in QT to encapsulating them into toolbars (II): encapsulating custom controls into toolbars

2022-07-07 16:58:00 God port

One 、 Project creation

 So let's create one first VS project .

 Insert picture description here

Two 、 Environment configuration

1. The generated customdashboardplugin.dll Add to qt designer Folder . This file is in your QT Installation directory .

 Insert picture description here
2. take customdashboardplugin.lib Add to qt lib Next
 Insert picture description here
3. Add header file to include Under the folder
 Insert picture description here
4.VS Configuration environment
The header file
 Insert picture description here
lib
 Insert picture description here
add to dll To exe Under the table of contents
 Insert picture description here

3、 ... and 、 effect

1. Toolbar effect
 Insert picture description here
2. Running effect

 Insert picture description here
The flow of automatic control is roughly like this , As long as the idea is good , Custom controls can help us realize various interfaces and functions , I hope I can help you .

原网站

版权声明
本文为[God port]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207071512255008.html