Code Monkey home page Code Monkey logo

learnqt's Introduction

Noob Note

  • 格式化代码:ctrl + i

  • F1查看定义

  • ctrl+鼠标左键点击的函数在定义与实现中切换

  • 运行程序时,Tab键切换焦点

Qt QML GUI Programing

qml-anchors

Qt C++ GUI Programing

  • Widget 中的信号与槽

    • 槽:处理函数,发送的信号,需要处理,处理的函数即为槽
    • 信号:只需声明,不需实现。moc会自动生成。
  • connect两种写法:

connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
connect(closeButton, &QPushButton::clicked, this, &FindDialog::close);
//connect(信号的发送者,信号函数的地址,信号的接收者,槽的地址);
  • Q_OBJECT
    • 应该出现在类的私有定义中; 若该类自定义了信号和槽,则应该加上该宏

Projects

learnqt's People

Contributors

jaywhen avatar

Watchers

 avatar  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.