[Qt-interest] Bidi changes in 4.7

Zeljko zeljko at holobit.net
Mon Sep 27 08:34:07 CEST 2010


Josh wrote:

> Hello all,
> 
> I've just upgraded from 4.7 beta 1 to 4.7 final (under Linux). There seem
> to be a number of changes to the way Qt handles Bidi (right to left) text
> in 4.7 final. I tried to look for documentation that tells all the
> specific changes and couldn't find anywhere.
> 
> The one specific change that I need to figure out how to "undo" is the
> placement of right-to-left text. For all my QLabels and QTextEdit's, when
> they start with Hebrew text, *now* the whole line is aligned-right,
> whereas before the alignment was still aligned-left even though the text
> was right-to-left. The layout-direction of all my widgets is set to
> left-to-right (not auto). So I'm wondering how to go back to the old
> behavior? I'm posting here because it doesn't seem like a bug, but a
> conscious decision to change how bidi works, but maybe it is a bug?

I've seen somewhere what's exactly changed and what to do in this case but
cannot remember url.Changes affected text edit widgets (QLineEdit,
QTextEdit etc), and from 4.7 default behaviour is auto for LTR and RTL. You
must create and send an event about it to each control to get old
behaviour, that's all I remember , but don't know what event.
Try to look into Changes text of 4.7 source, maybe it's there ...
z.



More information about the Qt-interest-old mailing list