Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45373 - QT Designer can't create template files.
Summary: QT Designer can't create template files.
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-22 04:07 UTC by Diederik van der Boor
Modified: 2005-01-11 13:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diederik van der Boor 2004-03-22 04:07:02 UTC
In QT-Designer, it isn't possible to use the "Create Template.." option as a normal user. As for now, I haven't found another way to create dialogs inheriting from the KCMDialog class.

With the command "strace -v -e trace=open /usr/qt/3/bin/designer" I've been able to find it that qt-designer tries to create a template file in /usr/qt/3/tools/designer/templates/

When the program runs as root, it can't find any kde-related settings and directories. The KCMDialog option also isn't available in the "Create Template.." menu option.

Reproducible: Always
Steps to Reproduce:
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-03-22 04:56:32 UTC
Which version of qt?  
Comment 2 Diederik van der Boor 2004-03-22 06:31:40 UTC
Sorry, the QT version is 3.3.0 (current stable version)
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2004-03-22 15:33:32 UTC
Does /usr/qt/3/tools/designer/templates/ exist for you?
Comment 4 Diederik van der Boor 2004-03-23 02:42:52 UTC
yes it does exist.

I think I could have explained it a little bit better, this folder can't be modified by a normal user off course. It's a permissions issue, but imho, qtdesigner should write the new template in the home folder of the user.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-20 18:17:52 UTC
still an issue with Qt 3.3
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-11 13:21:30 UTC
I can reproduce this one.
There's a workaround: create '~/.qt/templates' and then run the designer with 
'QTDIR="~/.qt" designer'.

We can't do anything though, this behaviour is hardcoded in the Qt sources...
a bug should be filed for Qt, but all this code has been redesigned for Qt4 
anyway...