Bonjour,

Qt Creator 1.3.1 :

J'essaye d'intégrer un template de classe : ( ficher xml .. et fichier templates) dans le repertoire /usr/share/qtcreator/templates/qt4project
mais ça ne fonctionne pas. Quand je fais File > New Project je ne trouve pas mon templates.


(Ce wizard fonctionne avec Qt Creator 2.*) Voici le wizard.xml crée:

Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
 
<?xml version="1.0" encoding="UTF-8"?>
<!--
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: <a href="http://www.qt-project.org/legal" target="_blank">http://www.qt-project.org/legal</a>
**
** 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 <a href="http://qt.digia.com/licensing" target="_blank">http://qt.digia.com/licensing</a>.  For further information
** use the contact form at <a href="http://qt.digia.com/contact-us" target="_blank">http://qt.digia.com/contact-us</a>.
**
** 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: <a href="http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html" target="_blank">http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html</a>.
**
** 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.ExternalTool" category="B.ETXSH">
    <icon>console.png</icon>
    <description>Create an External Tool for Easi Tester</description>
    <displayname>Create an External Tool for Easi Tester</displayname>;
    <displaycategory>ETXSH</displaycategory>
    <files>
	<file source="setXTool_env.sh" openeditor="false"/>
        <file source="src/main.cpp" openeditor="true"/>
        <file source="template.pro" target="%ProjectName%.pro" openproject="true"/>	
        <file source="src/template_xtools.cpp" target="src/%ProjectName%.cpp" openeditor="true"/>
	<file source="inc/template_xtools.h" target="inc/%ProjectName%.h" openeditor="true"/>        
    </files>
 
    <!-- Create a 2nd wizard page with parameters -->
    <fieldpagetitle>ETXSH plugins parameters</fieldpagetitle>
    <fieldpagetitle xml:lang="de">ETXSH Parameter</fieldpagetitle>    
    <fieldpagetitle xml:lang="fr">ETXSH Parameter</fieldpagetitle>
    <fields>
        <field mandatory="true" name="MESSAGE">
            <fieldcontrol class="QLineEdit" validator='^[^"]+$'
                          defaulttext="ETXSH new project  >> '%ProjectName:c%'  " placeholdertext="Enter a message"/>
            <fielddescription>Project name : </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="EAT_INSTALL_PATH">
            <fieldcontrol class="Utils::PathChooser" defaulttext="/data/Tools/EAT/EASITester_120B18"/>
            <fielddescription>Enter the location of EasiTester </fielddescription>
            <fielddescription xml:lang="fr">EasiTester location: </fielddescription>
        </field>
       <field name="DDS_INSTALL_PATH">
            <fieldcontrol class="Utils::PathChooser" defaulttext="/opt/PrismTech/OpenSpliceDDS/V5.5.0/HDE/x86.linux2.6"/>
            <fielddescription>Enter the location of OpenSplice DDS </fielddescription>
            <fielddescription xml:lang="fr">Open Splice location: </fielddescription>
        </field>
 
        <field name="DESCRIPTION_PROJECT">
            <fieldcontrol class="QLineEdit"/>
            <fielddescription>Enter the description of your project</fielddescription>
            <fielddescription xml:lang="fr">Project Description : </fielddescription>
        </field>
        <field name="PROJECT_VERSION">
            <fieldcontrol class="QLineEdit" defaulttext="1.0"/>
            <fielddescription>Enter the version of your project</fielddescription>
            <fielddescription xml:lang="fr">Version : </fielddescription>
        </field>
    </fields>
</wizard>

Merci beaucoup,