Skip to content

chengfzy/QtStudy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QtStudy

Some Study Code about Qt using CMake

Content

common

The common library

Basic

  1. Basic01_HelloWorld
    Basic Qt application using CMake
  2. Basic02_CustomModeView
    Custom model view using Qt. Ref:

Chart

  1. Chart01_Basic
    Basic chart example.
    Ref: Qt Example, Legend Markers Example, Light Markers Point Selection Example, Legend Example

CustomPlot

Some Examples using QCustomPlot

  1. CustomPlot01_Basic
    Basic example.
    Ref: Official examples
  2. CustomPlot02_MultiAxis
    Plot with multi axis.
    Ref: Official examples

ads

Some examples using Advanced Docking System

  1. ads01_Basic
    Basic example, ref: simple example
  2. ads02_DockInDockWidget
    Dock in dock, ref: dock in dock example
  3. ads03_DockInWidget
    与ads01_Basic类似, 不同的地方在于使用QWidget而非QMainWindow作为主窗口, 需要注意最后的layout代码, 不然会出现显示不全的情况

OpenGL

  1. Gl01_OpenGLWindow
    Basic usage using QOpenGLWidget.
    Ref: http://www.trentreed.net/blog/qt5-opengl-part-1-basic-rendering
  2. Gl02_OpenGL3DRendering
    3D Rendering using OpenGLWidget.
    Ref: http://www.trentreed.net/blog/qt5-opengl-part-2-3d-rendering/
  3. Gl03_2DPainting
    2D painting example, draw 2D with QWidget and QOpenGLWidget.
    Ref: Qt OpenGL Example, 2D Painting Example
  4. Gl04_TextRenderMultiThread
    Text render example.
    Ref: https://github.com/arunrvk/Qt-OpenGL-Fonts-with-Freetype-Library
  5. Gl05_TextRenderSingleThread
    Change Gl04_TextRenderMultiThread to single thread

Web

  1. Web01_TcpServer
    TCP server.
    Ref: Qt Example.
  2. Web02_ThreadedTcpServer
    Threaded TCP server.
    Ref: Qt Example.
  3. Web03_TcpAsyncClient
    Asynchronous approach of TCP Client.
    Ref: Qt Example.
  4. Web04_TcpSyncClient
    Synchronous approach of TCP Client.
    Ref: Qt Example.
  5. Web05_UdpSender
    Broadcast sender using UDP.
    Ref: Qt Example.
  6. Web05_UdpReceiver
    Broadcast receiver using UDP.
    Ref: Qt Example.
  7. Web07_UdpMulticastSender
    Multicast sender using UDP.
    Ref: Qt Example.
  8. Web08_UdpMulticastReceiver
    Multicast receiver using UDP.
    Ref: Qt Example.
  9. 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.
  10. Web10_UdpImageProcessor
    Ref Web09_UdpImageCapture.

Quick

  1. 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.
  2. Quick02_AddType
    How to add a new object type to QML.
    Ref: Qt help/Qt QML Examples/Extending QML - Adding Types Example

About

Some Study Code about Qt using CMake

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages