[Qt-interest] QDataWidgetMapper and Custom Widget

NaGeL nagel182 at gmail.com
Sat Apr 30 00:24:07 CEST 2011


Hello? would somebody nice enough to reply me that this has been asked
already,  or its a dumb question because Qt does this automatically, or no
one did understand me?

2011/4/28 NaGeL <nagel182 at gmail.com>

> 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/20110430/42fc82ba/attachment.html 


More information about the Qt-interest-old mailing list