[Qt-creator] custom widget

Jason H scorp1us at yahoo.com
Mon Jul 9 19:56:24 CEST 2012

You should post to the interest, not Creator list. This is for the creator application only.

As for your answer there are a couple ways.
If you need full XML capability, you can use Qt DOM, and create your document accordingly.
Of you want quick and dirty, you can use format it in QString("%1").arg(filename) 

 From: Heena Mahur <hena18 at rocketmail.com>
To: "qt-creator at qt-project.org" <qt-creator at qt-project.org> 
Sent: Monday, July 9, 2012 1:40 PM
Subject: [Qt-creator] custom widget


I want to know how to create custom widget to change the attribute of xml node in qt ?
for eg-

when you click on one node let's take
sorry <element>
and let's say this is the line in the XML file
<element><image src='ktuberling.svg' lang='any' /><pfound src='test.ogg' lang='any' /><word lang='any'>KTuberling</word></element>
then I want on the widget area something like
type image
file ktuberling.svg (with the possibility to load from a file
attribute lang any
and so on
and this changes depending on which element you click
Please elaborate in detail I am a beginner
Qt-creator mailing list
Qt-creator at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120709/c0587678/attachment.html>

More information about the Qt-creator mailing list