[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: creating custom widget in qt
From: Heena Mahur <hena18 () rocketmail ! com>
Date: 2012-07-09 17:52:18
Message-ID: 1341856338.75496.YahooMailNeo () web193605 ! mail ! sg3 ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (text/html)]
<html><body><div style="color:#000; background-color:#fff; font-family:arial, \
helvetica, sans-serif;font-size:12pt"><div><font face="arial, helvetica, \
sans-serif"><div class="msg-body inner undoreset" role="main" aria-label="Message \
Body" style="margin-top: 25px; margin-right: 24px; margin-bottom: 22px; margin-left: \
29px; word-wrap: break-word; overflow-x: auto; overflow-y: hidden; color: rgb(69, 69, \
69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "><div \
id="yiv652902649"><div><div style="color: rgb(0, 0, 0); font-family: arial, \
helvetica, sans-serif; font-size: 12pt; "><div><div \
class="yiv652902649history_message " id="yiv6529026490.4830762955825776_:su" \
style="font-family: arial, sans-serif; word-wrap: break-word; color: rgb(34, 34, 34); \
font-size: 13px; line-height: 15px; ">Hey,</div><div \
class="yiv652902649history_message " id="yiv6529026490.4830762955825776_:su" \
style="font-family: arial, sans-serif; word-wrap: break-word; color: rgb(34, 34, \
34); font-size: 13px; line-height: 15px; "><h1 style="font-size: 23px; margin-top: \
0px; margin-right: 0px; margin-bottom: 7px; margin-left: 0px; padding-top: 0px; \
padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; \
border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; \
border-color: initial; vertical-align: baseline; font-family: sans-serif; \
line-height: 1.3; color: rgb(0, 0, 0); text-align: left; "><br></h1><div>I want to \
know how to create custom widget to change the attribute of xml node in qt \
?</div><div>for eg-</div></div><div class="yiv652902649history_message " \
id="yiv6529026490.4830762955825776_:su" style="font-family: arial, sans-serif; \
word-wrap: break-word; color: rgb(34, 34, 34); font-size: 13px; line-height: 15px; \
"><br></div><div class="yiv652902649history_message " \
id="yiv6529026490.4830762955825776_:su" style="font-family: arial, sans-serif; \
word-wrap: break-word; color: rgb(34, 34, 34); font-size: 13px; line-height: 15px; \
">when you click on one node let's take</div><div class="yiv652902649history_message \
" id="yiv6529026490.4830762955825776_:sv" style="font-family: arial, sans-serif; \
word-wrap: break-word; color: rgb(34, 34, 34); font-size: 13px; line-height: 15px; \
"><image></div><div class="yiv652902649history_message " \
id="yiv6529026490.4830762955825776_:sw" style="font-family: arial, sans-serif; \
word-wrap: break-word; color: rgb(34, 34, 34); font-size: 13px; line-height: 15px; \
">sorry <element></div><div class="yiv652902649history_message " \
id="yiv6529026490.4830762955825776_:sx" style="font-family: arial, sans-serif; \
word-wrap: break-word; color: rgb(34, 34, 34); font-size: 13px; line-height: 15px; \
">and let's say this is the line in the XML file</div><div \
class="yiv652902649history_message " id="yiv6529026490.4830762955825776_:sy" \
style="font-family: arial, sans-serif; word-wrap: break-word; color: rgb(34, 34, \
34); font-size: 13px; line-height: 15px; "><element><image \
src='ktuberling.svg' lang='any' /><pfound src='test.ogg' lang='any' \
/><word lang='any'>KTuberling</word></element></div><div \
class="yiv652902649history_message " id="yiv6529026490.4830762955825776_:sz" \
style="font-family: arial, sans-serif; word-wrap: break-word; color: rgb(34, 34, 34); \
font-size: 13px; line-height: 15px; ">then I want on the widget area something \
like</div><div class="yiv652902649history_message " \
id="yiv6529026490.4830762955825776_:t0" style="font-family: arial, sans-serif; \
word-wrap: break-word; color: rgb(34, 34, 34); font-size: 13px; line-height: 15px; \
">type image</div><div class="yiv652902649history_message " \
id="yiv6529026490.4830762955825776_:t1" style="font-family: arial, sans-serif; \
word-wrap: break-word; color: rgb(34, 34, 34); font-size: 13px; line-height: 15px; \
">file ktuberling.svg (with the possibility to load from a file</div><div \
class="yiv652902649history_message " id="yiv6529026490.4830762955825776_:t2" \
style="font-family: arial, sans-serif; word-wrap: break-word; color: rgb(34, 34, 34); \
font-size: 13px; line-height: 15px; ">attribute lang any</div><div \
class="yiv652902649history_message " id="yiv6529026490.4830762955825776_:t3" \
style="font-family: arial, sans-serif; word-wrap: break-word; color: rgb(34, 34, 34); \
font-size: 13px; line-height: 15px; ">and so on</div><div \
class="yiv652902649history_message " id="yiv6529026490.4830762955825776_:t4" \
style="font-family: arial, sans-serif; word-wrap: break-word; color: rgb(34, 34, 34); \
font-size: 13px; line-height: 15px; ">and this changes depending on which element you \
click</div><div class="yiv652902649history_message " \
id="yiv6529026490.4830762955825776_:t4" style="font-family: arial, sans-serif; \
word-wrap: break-word; color: rgb(34, 34, 34); font-size: 13px; line-height: 15px; \
">Please elaborate in detail I am a \
beginner</div><div><br></div></div></div></div></div></div></font></div></div></body></html>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic