新浪微博
腾讯微博
会员列表
统计排行
基本信息
到访IP统计
管理团队
管理统计
在线会员
会员排行
版块排行
帖子排行
标签排行
帮助
下拉
用户名
电子邮箱
用户名
密 码
记住登录
登录
找回密码
注册
快捷通道
关闭
您还没有登录,快捷通道只有在登录后才能使用。
立即登录
还没有帐号? 赶紧
注册一个
首页
论坛
Qt下载
作品展
群组
个人中心
捐赠、管理与开发
邮件订阅
帖子
文章
日志
用户
版块
群组
帖子
搜索
QTCN开发网
>
Qt安装与发布
>
在制作Qt项目模板的时候,怎么样通过复选框来选择需要的文件?
发帖
回复
返回列表
新帖
5204
阅读
1
回复
[提问]
在制作Qt项目模板的时候,怎么样通过复选框来选择需要的文件?
[复制链接]
上一主题
下一主题
离线
ppdayz
UID:113403
注册时间
2011-03-14
最后登录
2016-07-29
在线时间
1377小时
发帖
781
搜Ta的帖子
精华
2
金钱
7965
威望
755
贡献值
0
好评度
746
访问TA的空间
加好友
用道具
禁止发言
关闭
个人中心可以申请新版勋章哦
立即申请
知道了
加关注
发消息
只看楼主
正序阅读
楼主
发表于: 2013-05-01
在制作Qt项目模板的时候,怎么样通过复选框来选择需要的文件?
如题,我做了一个Qt项目的模板(关于项目的模板可以参考:
http://doc.qt.digia.com/qtcreator/creator-project-wizards.html
)
然后新建项目的时候有选项:log4qt module,如图:
图片:屏幕截图.jpg
我是想当这个checkbox选中的时候,创建的项目才会把log4qt的项目
文件
都复制到新的项目
文件夹
里面,
图片:屏幕截图.jpg
就和qt的默认的这个
GUI
项目一样,你选了创建
界面
,才会有UI文件。
wizard.xml里面怎么写?
共
条评分
回复
举报
分享到
淘江湖
新浪
QQ微博
QQ空间
开心
人人
豆瓣
网易微博
百度
鲜果
白社会
飞信
离线
ppdayz
UID:113403
注册时间
2011-03-14
最后登录
2016-07-29
在线时间
1377小时
发帖
781
搜Ta的帖子
精华
2
金钱
7965
威望
755
贡献值
0
好评度
746
访问TA的空间
加好友
用道具
禁止发言
加关注
发消息
只看该作者
1楼
发表于: 2013-05-01
复制代码
<?xml version="1.0" encoding="UTF-8"?>
<!--
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: [url]http://www.qt-project.org/legal[/url]
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see [url]http://qt.digia.com/licensing[/url]. For further information
** use the contact form at [url]http://qt.digia.com/contact-us[/url].
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: [url]http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html[/url].
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
****************************************************************************/
Custom project wizard configuration example file. Note that by convention,
the project file goes last.
The "class" and "firstpage" attributes specify that it is a Qt 4 wizard and
leave room for the Qt 4 target page.
-->
<wizard version="1" kind="project"
class="qt4project" firstpage="10"
id="A.PuYZ_APP" category="B.CustomProjects">
<icon>console.png</icon>
<description>Create a universal GUI program, Include a few third-party libraries.
It's a Qt subdir project, include the APP, APPLibs and Third-party libs</description>
<displayname>PuYZ Full Application</displayname>;
<displaycategory>Puyz Projects</displaycategory>
<files>
<file source="projectAPP\main.cpp" target="%ProjectName%App\main.cpp" openeditor="true"/>
<file source="projectAPP\projectApp.pro" target="%ProjectName%App\%ProjectName%App.pro" />
<file source="projectAPP\output.pri" target="%ProjectName%App\output.pri" />
<file source="projectAPP\properties" target="%ProjectName%App\properties" />
<file source="project.pro" target="%ProjectName%.pro" openproject="true" />
<!-- Log4qt -->
<file source="libLog4Qt\liblog4qt.pri" />
<file source="libLog4Qt\liblog4qt.pro" />
<!-- ThirdParty log4qt -->
<file source="ThirdParty\log4qt\appender.h" />
<file source="ThirdParty\log4qt\appenderskeleton.cpp" />
<file source="ThirdParty\log4qt\appenderskeleton.h" />
<file source="ThirdParty\log4qt\basicconfigurator.cpp" />
<file source="ThirdParty\log4qt\basicconfigurator.h" />
<file source="ThirdParty\log4qt\consoleappender.cpp" />
<file source="ThirdParty\log4qt\consoleappender.h" />
<file source="ThirdParty\log4qt\dailyrollingfileappender.cpp" />
<file source="ThirdParty\log4qt\dailyrollingfileappender.h" />
<file source="ThirdParty\log4qt\fileappender.cpp" />
<file source="ThirdParty\log4qt\fileappender.h" />
<file source="ThirdParty\log4qt\hierarchy.cpp" />
<file source="ThirdParty\log4qt\hierarchy.h" />
<file source="ThirdParty\log4qt\layout.cpp" />
<file source="ThirdParty\log4qt\layout.h" />
<file source="ThirdParty\log4qt\level.cpp" />
<file source="ThirdParty\log4qt\level.h" />
<file source="ThirdParty\log4qt\libLog4Qt_global.h" />
<file source="ThirdParty\log4qt\log4qt.cpp" />
<file source="ThirdParty\log4qt\log4qt.h" />
<file source="ThirdParty\log4qt\log4qt.pri" />
<file source="ThirdParty\log4qt\logger.cpp" />
<file source="ThirdParty\log4qt\logger.h" />
<file source="ThirdParty\log4qt\loggerrepository.cpp" />
<file source="ThirdParty\log4qt\loggerrepository.h" />
<file source="ThirdParty\log4qt\loggingevent.cpp" />
<file source="ThirdParty\log4qt\loggingevent.h" />
<file source="ThirdParty\log4qt\logmanager.cpp" />
<file source="ThirdParty\log4qt\logmanager.h" />
<file source="ThirdParty\log4qt\mdc.cpp" />
<file source="ThirdParty\log4qt\mdc.h" />
<file source="ThirdParty\log4qt\ndc.cpp" />
<file source="ThirdParty\log4qt\ndc.h" />
<file source="ThirdParty\log4qt\patternlayout.cpp" />
<file source="ThirdParty\log4qt\patternlayout.h" />
<file source="ThirdParty\log4qt\propertyconfigurator.cpp" />
<file source="ThirdParty\log4qt\propertyconfigurator.h" />
<file source="ThirdParty\log4qt\rollingfileappender.cpp" />
<file source="ThirdParty\log4qt\rollingfileappender.h" />
<file source="ThirdParty\log4qt\simplelayout.cpp" />
<file source="ThirdParty\log4qt\simplelayout.h" />
<file source="ThirdParty\log4qt\ttcclayout.cpp" />
<file source="ThirdParty\log4qt\ttcclayout.h" />
<file source="ThirdParty\log4qt\writerappender.cpp" />
<file source="ThirdParty\log4qt\writerappender.h" />
<file source="ThirdParty\log4qt\helpers\classlogger.cpp" />
<file source="ThirdParty\log4qt\helpers\classlogger.h" />
<file source="ThirdParty\log4qt\helpers\configuratorhelper.cpp" />
<file source="ThirdParty\log4qt\helpers\configuratorhelper.h" />
<file source="ThirdParty\log4qt\helpers\datetime.cpp" />
<file source="ThirdParty\log4qt\helpers\datetime.h" />
<file source="ThirdParty\log4qt\helpers\factory.cpp" />
<file source="ThirdParty\log4qt\helpers\factory.h" />
<file source="ThirdParty\log4qt\helpers\initialisationhelper.cpp" />
<file source="ThirdParty\log4qt\helpers\initialisationhelper.h" />
<file source="ThirdParty\log4qt\helpers\logerror.cpp" />
<file source="ThirdParty\log4qt\helpers\logerror.h" />
<file source="ThirdParty\log4qt\helpers\logobject.cpp" />
<file source="ThirdParty\log4qt\helpers\logobject.h" />
<file source="ThirdParty\log4qt\helpers\logobjectptr.cpp" />
<file source="ThirdParty\log4qt\helpers\logobjectptr.h" />
<file source="ThirdParty\log4qt\helpers\optionconverter.cpp" />
<file source="ThirdParty\log4qt\helpers\optionconverter.h" />
<file source="ThirdParty\log4qt\helpers\patternformatter.cpp" />
<file source="ThirdParty\log4qt\helpers\patternformatter.h" />
<file source="ThirdParty\log4qt\helpers\properties.cpp" />
<file source="ThirdParty\log4qt\helpers\properties.h" />
<file source="ThirdParty\log4qt\spi\filter.cpp" />
<file source="ThirdParty\log4qt\spi\filter.h" />
<file source="ThirdParty\log4qt\varia\debugappender.cpp" />
<file source="ThirdParty\log4qt\varia\debugappender.h" />
<file source="ThirdParty\log4qt\varia\denyallfilter.cpp" />
<file source="ThirdParty\log4qt\varia\denyallfilter.h" />
<file source="ThirdParty\log4qt\varia\levelmatchfilter.cpp" />
<file source="ThirdParty\log4qt\varia\levelmatchfilter.h" />
<file source="ThirdParty\log4qt\varia\levelrangefilter.cpp" />
<file source="ThirdParty\log4qt\varia\levelrangefilter.h" />
<file source="ThirdParty\log4qt\varia\listappender.cpp" />
<file source="ThirdParty\log4qt\varia\listappender.h" />
<file source="ThirdParty\log4qt\varia\nullappender.cpp" />
<file source="ThirdParty\log4qt\varia\nullappender.h" />
<file source="ThirdParty\log4qt\varia\stringmatchfilter.cpp" />
<file source="ThirdParty\log4qt\varia\stringmatchfilter.h" />
<!-- ThirdParty log4qt -->
</files>
<!-- Create a 2nd wizard page with parameters -->
<fieldpagetitle>Hello World Parameters</fieldpagetitle>
<fieldpagetitle xml:lang="de">Hallo Welt Parameter</fieldpagetitle>
<fields>
<field mandatory="true" name="MESSAGE">
<fieldcontrol class="QLineEdit" validator='^[^"]+$'
defaulttext="Hello world from project '%ProjectName:c%'!" />
<fielddescription>Hello world message:</fielddescription>
<fielddescription xml:lang="de">Hallo-Welt-Nachricht:</fielddescription>
</field>
<!-- Checkbox technique 1: Comment out network in profile according to user's wishes -->
<field name="LOG4QT">
<fieldcontrol class="QCheckBox" truevalue="true" falsevalue="# " defaultvalue="true"/>
<fielddescription>log4Qt module</fielddescription>
</field>
</fields>
</wizard>
这个是我的wizard.xml
共
条评分
回复
举报
发帖
回复
返回列表
http://www.qtcn.org/bbs
访问内容超出本站范围,不能确定是否安全
继续访问
取消访问
快速回复
限100 字节
您目前还是游客,请
登录
或
注册
进入高级模式
文字颜色
发 布
回复后跳转到最后一页
上一个
下一个
关闭
补充发布信息
验证码:
发 布
隐藏
快速跳转
站务及资讯
网站公告
新闻资讯
Qt官方发布
网站管理
Qt应用及资源
Qt 作品展
Qt代码秀
Qt应用版
Qt技术讨论区
Qt安装与发布
Qt中文处理
Qt基础编程
Qt QML开发
Qt嵌入式开发
Qt移动平台开发
其它技术开发讨论区
Qt图书专区
《C++ GUI Qt 4编程》(第2版)专栏
《Qt高级编程》专栏
《零基础学Qt4编程》专栏
《Qt设计模式》(第2版) 图书专栏
Python Qt GUI快速编程
Qt项目开发区
天池项目
Qt开放平台开发库
Qt版百度云笔记
机械CAD
Qt文档计划
QTCN网站系统开发
扇贝词典
非活跃项目区
社区中心
帖子回收站(Trash)
招聘、求职、供求、广告等
休闲娱乐
关闭
关闭
选中
1
篇
全选