Hi,

at first,please ask Qt related questions on [email protected] (see the 
Mailing lists on www.qt-project.org for more information).

Now to your question:

To create a custom widget by subclassing QWidget like

class MyCustomWidget : public QWidget

and there you can place any method you need for your program.
When I understand your question of the xml right, you want to
display different images depending on the <img src> tag right?
For the XML things you can have a look at the Xml* classes on http://qt-
project.org/doc/qt-4.8/classes.html as well as the Qt XML Examples found

http://qt-project.org/doc/qt-4.8/examples-xml.html on that page.

So long

Daniel


On Tuesday, July 10, 2012 01:52:18 AM Heena Mahur wrote:

Hey,


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
<image>
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




>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to