当前位置: 首页 > news >正文

域名绑定网站韶关企业网站建设

域名绑定网站,韶关企业网站建设,如何用flashfxp通过ftp访问网站服务器下载网站代码,一个网站需要多少网页qt笔记之qml下拉标签组合框增加发送按钮发送标签内容 code review! 文章目录 qt笔记之qml下拉标签组合框增加发送按钮发送标签内容1.运行2.文件结构3.main.qml4.main.cc5.MyClass.h6.MyClass.cc7.CMakeLists.txt8.ComboBox.pro9.qml.qrc 1.运行 2.文件结构 3.main.qml 代码 …qt笔记之qml下拉标签组合框增加发送按钮发送标签内容 code review! 文章目录 qt笔记之qml下拉标签组合框增加发送按钮发送标签内容1.运行2.文件结构3.main.qml4.main.cc5.MyClass.h6.MyClass.cc7.CMakeLists.txt8.ComboBox.pro9.qml.qrc 1.运行 2.文件结构 3.main.qml 代码 import QtQuick 2.4 import QtQuick.Controls 1.3 import QtQuick.Window 2.2Window {visible: truewidth: 640height: 480title: qsTr(QML ComboBox C signal)property string selectedOptionComboBox {id: comboBoxx: 12y: 58width: 147height: 25model: [选项一, 选项二, 选项三]Component.onCompleted: {selectedOption 选项一}onCurrentIndexChanged: {selectedOption comboBox.currentText;}}Button {id: buttonx: 18y: 134text: qsTr(发送)onClicked: {myClass_rename.setValue(selectedOption);}} }4.main.cc 代码 #include MyClass.h #include QGuiApplication #include QQmlApplicationEngine #include QQmlContextQ_DECLARE_METATYPE(MyClass *)int main(int argc, char *argv[]) {QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);QGuiApplication app(argc, argv);QQmlApplicationEngine engine;MyClass myClass;engine.rootContext()-setContextProperty(myClass_rename, myClass);engine.load(QUrl(QStringLiteral(qrc:/main.qml)));if (engine.rootObjects().isEmpty())return -1;return app.exec(); }5.MyClass.h 代码 #ifndef MYCLASS_H #define MYCLASS_H#include QObject #include QString #include QVector #include iomanip #include iostreamclass MyClass : public QObject {Q_OBJECTpublic:explicit MyClass(QObject *parent nullptr);public slots:void setValue(QString value); };#endif // MYCLASS_H6.MyClass.cc 代码 #include MyClass.h #include QDebugMyClass::MyClass(QObject *parent) : QObject(parent) {}void MyClass::setValue(QString value) {qDebug() value value; }7.CMakeLists.txt 代码 cmake_minimum_required(VERSION 2.8.12)project(ComboBox LANGUAGES CXX) set(Qt5_DIR /home/user/Qt/5.15.2/gcc_64/lib/cmake/Qt5) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON)find_package(Qt5 COMPONENTS Core Quick REQUIRED)include_directories( # src*.h )file (GLOB SRCS # src/cc/*.cc*.cc )file (GLOB INCS # src/inc/*.h*.h )add_executable(${PROJECT_NAME} ${SRCS} ${INCS} main.cc qml.qrc)target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Quick -pthread)8.ComboBox.pro 代码 QT quick qml CONFIG c11INCLUDEPATH ./LIBS -L/usr/lib/x86_64-linux-gnu -lz LIBS /usr/lib/x86_64-linux-gnu/libboost_* #LIBS /usr/lib/aarch64-linux-gnu/libboost_*# 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). Refer to the documentation for the # deprecated API 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_BEFORE0x060000 # disables all the APIs deprecated before Qt 6.0.0SOURCES \./main.ccRESOURCES ./qml.qrc \ # image.qrc# Additional import path used to resolve QML modules in Qt Creators code model QML_IMPORT_PATH # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH # Default rules for deployment. qnx: target.path /tmp/$${TARGET}/bin else: unix:!android: target.path /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS target9.qml.qrc 代码 RCCqresource prefix/filemain.qml/file/qresource /RCC
http://www.w-s-a.com/news/487871/

相关文章:

  • 360制作网站搜网站网
  • 门户网站标题居中加大网站底部的制作
  • 网站建设项目费用报价ai软件下载
  • 面料 做网站重庆网站seo费用
  • 中国沈阳网站在哪里下载中国移动营销策略分析
  • 建设银行 钓鱼网站360免费建站教程
  • wordpress全站cdn网站运营年度推广方案
  • 成都网站开发培训机构网站开发 实习报告
  • 廊坊网站建设佛山厂商wordpress神主题
  • 成县建设局网站中国建筑有几个工程局
  • 网站打不开被拦截怎么办单页面网站制作
  • 关于协会网站建设的建议设计公司名字参考
  • 怎样申请做p2p融资网站页面设计时最好使用一种颜色
  • 一般做网站上传的图片大小网站软件设计
  • 用来网站备案注册什么公司好wordpress怎么搜索中文主题
  • 网站开发 打标签深圳软件公司排名
  • 邯郸的网站建设电子网站怎么做的
  • 中国企业信用网四川游戏seo整站优化
  • 下载站推广wordpress扩展字段
  • 网站建设这个工作怎么样免费电子版个人简历模板
  • 移动网站设计与制作网站开发接私活
  • 视频制作素材网站wordpress mysql 被删
  • 静态网站 模板公司一般都用什么邮箱
  • 做网站效果图是用ps还是ai泰安人才网最新招聘信息2022年
  • 免费建站网站一级大录像不卡在线看网页郑州网站关键
  • 做网站 然后百度推广哈尔滨建筑网
  • 章丘营销型网站建设网站测评必须做
  • 营销者网站怎么把网站黑了
  • 律师事务所手机网站校园网站设计
  • 网站案例展示分类网站响应速度优化