Some Study Code about Qt using CMake
The common library
- Basic01_HelloWorld
Basic Qt application using CMake - Basic02_CustomModeView
Custom model view using Qt. Ref:
- Chart01_Basic
Basic chart example.
Ref: Qt Example, Legend Markers Example, Light Markers Point Selection Example, Legend Example
Some Examples using QCustomPlot
- CustomPlot01_Basic
Basic example.
Ref: Official examples - CustomPlot02_MultiAxis
Plot with multi axis.
Ref: Official examples
Some examples using Advanced Docking System
- ads01_Basic
Basic example, ref: simple example - ads02_DockInDockWidget
Dock in dock, ref: dock in dock example - ads03_DockInWidget
与ads01_Basic类似, 不同的地方在于使用QWidget
而非QMainWindow
作为主窗口, 需要注意最后的layout代码, 不然会出现显示不全的情况
- Gl01_OpenGLWindow
Basic usage using QOpenGLWidget.
Ref: http://www.trentreed.net/blog/qt5-opengl-part-1-basic-rendering - Gl02_OpenGL3DRendering
3D Rendering using OpenGLWidget.
Ref: http://www.trentreed.net/blog/qt5-opengl-part-2-3d-rendering/ - Gl03_2DPainting
2D painting example, draw 2D with QWidget and QOpenGLWidget.
Ref: Qt OpenGL Example, 2D Painting Example - Gl04_TextRenderMultiThread
Text render example.
Ref: https://github.com/arunrvk/Qt-OpenGL-Fonts-with-Freetype-Library - Gl05_TextRenderSingleThread
Change Gl04_TextRenderMultiThread to single thread
- Web01_TcpServer
TCP server.
Ref: Qt Example. - Web02_ThreadedTcpServer
Threaded TCP server.
Ref: Qt Example. - Web03_TcpAsyncClient
Asynchronous approach of TCP Client.
Ref: Qt Example. - Web04_TcpSyncClient
Synchronous approach of TCP Client.
Ref: Qt Example. - Web05_UdpSender
Broadcast sender using UDP.
Ref: Qt Example. - Web05_UdpReceiver
Broadcast receiver using UDP.
Ref: Qt Example. - Web07_UdpMulticastSender
Multicast sender using UDP.
Ref: Qt Example. - Web08_UdpMulticastReceiver
Multicast receiver using UDP.
Ref: Qt Example. - Web09_UdpImageCapture
Capture image and send it to Processor using UDP, the Processor receive the image, process it and send result to Capture using UDP, the Capture receive processed result and show it. - Web10_UdpImageProcessor
Ref Web09_UdpImageCapture.
- Quick01_QmlBasic
Some basic qml example, use/opt/Qt/6.2.0/gcc_64/bin/qml ./modules/quick/Quick01_QmlBasic/Main.qml
to show the UI result. - Quick02_AddType
How to add a new object type to QML.
Ref: Qt help/Qt QML Examples/Extending QML - Adding Types Example