Qt Creator project wizard: (File-)Path input possible?



  • Is there a way to use a QFileDialog or similar within a Wizard definition?

    I can use a QLineEdit like this:

    @<field mandatory="true" name="MESSAGE">
    <fieldcontrol class="QLineEdit" validator='^[^"]+$'
    defaulttext="Description for '%ProjectName:c%'!" />
    <fielddescription>Description:</fielddescription>
    </field>@

    but would like to use direct path input like this:

    @<field mandatory="true" name="COMMON">
    <fieldcontrol class="QFileDialog"
    defaulttext="Path to COMMON Project" />
    <fielddescription>Path to COMMON:</fielddescription>
    </field>@

    Is there a way or a workaround?



  • I found out myself by looking at the examples ;-)

    @<fieldcontrol class="Utils::PathChooser" ....@

    does the trick.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.