Important: Please read the Qt Code of Conduct -

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%'!" />

    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>

    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