Coder Social home page Coder Social logo

qmlstudy's Introduction

qml 学习笔记

环境:window11(理论上linux也是没问题的)

Qt 5.15.2

说明

B站视频解说:https://www.bilibili.com/video/BV19u41167eJ

我不喜欢 QtCreator,被迫使用vscode 等工具去编写,但是cmake配置项目是一个头疼的问题。该项目提供了一个cmake配置qml模板,给大伙一个参考

  • 自定义Qml Plugin
  • 导入Plugin IDE不会报错,并且QtCreator 有提示
  • cmake 自动完成,无需手动干预
  • 支持vscode clion

参考文档:

  1. https://cmake.org/documentation/
  2. https://doc.qt.io/qt-6.2/cmake-target-property-qt-qml-import-path.html
  3. https://doc.qt.io/qtcreator/creator-qml-modules-with-plugins.html
  4. https://doc.qt.io/qtcreator/creator-qml-modules-with-plugins.html

项目结构

├─bin # 输出
│  └─XQuick
├─Example # 主程序 
│  ├─assets
│  │  └─qml
│  └─src
└─XQuick # 自定义模块
    ├─assets
    │  └─qml
    │      ├─Button
    │      ├─Item
    │      └─MouseArea
    └─src

杂谈

我查阅了很多qt文档,设计qml很多知识点,我集中放在视频了说明吧

qmlstudy's People

Contributors

yxingqin avatar

Stargazers

zhoutk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.