[Qt-interest] QTextEdit not updating...

Eric Clark eclark at ara.com
Thu Aug 18 18:11:56 CEST 2011


Hello All,

I have a QTextEdit inside of a dialog. When I set the text of the editor from code, the GUI is not updating. The only way I can get I to update is to do two things:


1.       Focus the widget.

2.       Drag my cursor across the text.

When I focus the widget by clicking on it, part of the text appears, but not all and sometimes it is just a portion of the letters. The only way to get it to show all of the text is to select it all, then everything looks good. This is very odd behavior to me though. Does anyone know of a way to get the widget to update its display from code, without the user having to "play" with the widget? Any help would be greatly appreciated!

Thanks,
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110818/422970d0/attachment.html 


More information about the Qt-interest-old mailing list