PDA

View Full Version : Two questions about QTextLayout



zackhugh
30th November 2015, 03:32
I'm coding a custom editor with a QTextLayout. Two questions:

1. It looks like the only way to insert text is to call setText() with a new string. But this invalidates the layout. Do I need to reconfigure the layout every time the user presses a key?

2. The setPreeditArea() function sets the position and text of the area processed before editing occurs. How is this function useful? What "editing" is the layout doing?

Thanks,
Zack

DaJunkie
22nd March 2016, 09:13
Hi zackhugh,

did you suceed with your own Editor using QTextLayout?

P.S.: I alread sent you yesterday a private message, but it does not show up in my 'Sent Messages' folder.