creating custom widget

Aleix Pol aleixpol at kde.org
Mon Jul 9 22:47:29 UTC 2012


On Mon, Jul 9, 2012 at 7:42 PM, Heena Mahur <hena18 at rocketmail.com> 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.
> Thanks
>
> _______________________________________________
> kde-edu mailing list
> kde-edu at mail.kde.org
> https://mail.kde.org/mailman/listinfo/kde-edu
>
>
What you want to do, is to generate a model from the XML data. You can use
QStandardItemModel for that. Note that you'll have to make sure you can
write back the model afterwards.

As I said before, please don't start sending the e-mails to several mailing
lists at the same time.

Aleix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20120710/3a5eebf6/attachment.html>


More information about the kde-edu mailing list