Results 1 to 2 of 2

Thread: Two questions about QTextLayout

  1. #1
    Join Date
    Nov 2015
    Qt products
    Unix/X11 Windows

    Default Two questions about QTextLayout

    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?


  2. #2
    Join Date
    Mar 2016
    Qt products
    MacOS X Unix/X11 Windows

    Default Re: Two questions about QTextLayout

    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.

Similar Threads

  1. Replies: 0
    Last Post: 1st March 2012, 07:21
  2. What's wrong with QTextLayout ?!
    By Cortex in forum Qt Programming
    Replies: 7
    Last Post: 20th December 2009, 11:58
  3. Printing using QTextLayout
    By ericV in forum Qt Programming
    Replies: 2
    Last Post: 24th November 2009, 13:39
  4. QTextLayout draws text outside the widget
    By alpinista in forum Qt Programming
    Replies: 2
    Last Post: 23rd October 2009, 07:25
  5. Several questions
    By zlatko in forum Qt Tools
    Replies: 3
    Last Post: 25th May 2007, 09:47

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.