Red Hat Bugzilla – Bug 53388
missing directory $QTDIR/tools/designer/templates
Last modified: 2007-04-18 12:36:57 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12smp i686)
Description of problem:
The Qt Designer needs directory $QTDIR/tools/designer/templates otherwise
it will try to load template files from the current directory. I'll have to
agree that the relevant code in tools/designer/designer/newformimpl.cpp is
static QString templatePath( const QString &t )
if ( QFileInfo( "../templates" ).exists() )
QString qtdir = getenv( "QTDIR" );
if ( QFileInfo( qtdir + "/tools/designer/templates" ).exists() )
return qtdir + "/tools/designer/templates";
Trolltech will take care of this, maybe by deleting this curious function,
but $QTDIR/tools/designer/templates seems to be needed by the Qt Designer
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Enter a directory that contains a few files.
2. Run the Qt Designer from this directory.
3. Click on the New toobutton.
4. The files of this directory appear as templates in the dialog.
Actual Results: The files of this directory appear as templates in the
"New Form" dialog.
Expected Results: Only the files in $QTDIR/tools/designer/templates should
I suggest adding a $QTDIR/tools/designer/templates in the current version.
Unfortunately this was reported slightly too late to make it into the next
release. It will be addressed for the release after that.