[Qt-interest] QDataWidgetMapper and Custom Widget

NaGeL nagel182 at gmail.com
Thu Apr 28 13:53:47 CEST 2011


Hello!
Newbie here.Also English isn't my native language, so sorry for any hiccups.

I'm currently doing a program that loads data from an SQL database, present
it to the user, an d the user have the option to edit it...

never mind that.  I used QDatawidgetmapper to  map simple QLineEdits, and a
Qcheckbox.
This is all good, but there is a text field which requires a bigger field of
text and needs to be presented to the user styled.(bold, italic crossed text
etc.)

I figured I make a Custom Widget with QTextEdit and a toolbar that makes the
styles, like a bold button, etc.
and put the Custom Widget into the editor.

My question is: How can I use QDataWidgetMapper to map my custom Widget, and
in that QTextEdit?

Also I would ask that QTextEdit  uses Html tags as style right? Is there a
way to change that? using custom tags to style the text? I want to use
something database lighter.

Again sorry if this sounds gibberish, English isn't my firts language, if
this not understandable i will try to explain the whole situation in my next
post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110428/457e4985/attachment.html 


More information about the Qt-interest-old mailing list