qt 命名规范以及快捷键

QT  += core gui Qt包含的模块

qt5 基本模块 最重要三类 Qwidget Qtcore Qt gui

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets //大于4版本以上 包含widget模块

//TEMPLATE template 模板 应用程序模板 application target 目标 生成的.exe程序的名称

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    main.cpp \
    mywidget.cpp

HEADERS += \
    mywidget.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
//命令规范
//类名 首字母大写 单词和单词之间大写
//函数名 变量名称 首字母小写 单词和单词之间首字母大写
//快捷键 
//注释 ctrl / 只能注释一行
//运行 ctrl r
//编译  ctrl b
//查找 ctrl f
//整行移动 ctrl shift ↑或者↓ 相当于和上或者下一行调换顺序
//帮助文档 F1 没下 没有用 按ESC退出; 左侧按钮;assistance.exe 帮助窗口D:\BaiduNetdiskDownload\qtcreator\5.12.9\mingw73_32\bin
//自动对齐 ctrl i
//同名之间的.h 和.cpp切换 F4 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值