Results 1 to 2 of 2

Thread: QTextEdit / QTextBlockFormat : bug?

  1. #1
    Join Date
    Apr 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QTextEdit / QTextBlockFormat : bug?

    Hello

    It seems that a big bug is there (tested on Qt 4.8.0 and Qt 4.8.1)

    here is code to test:


    QTextEdit *editor = new QTextEdit();
    QTextCursor cursor(editor->textCursor());
    QTextBlockFormat blockFormat = cursor.blockFormat();
    blockFormat.setLeftMargin(150);
    cursor.setBlockFormat(blockFormat);
    for (int i=0; i<100; i++) cursor.insertText("aaa aaaa ");


    The cursor can't go on the right part of the text (150 pixels from the right side of the textedit), using arrow keys or mouse gives the same result.
    Or maybe I did something wrong?

    Thanks for your help, i'm 100% stuck with this...


    Thanks

  2. #2
    Join Date
    Apr 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QTextEdit / QTextBlockFormat : bug?

    is anyone can take some little time to check this? it seems a major bug...
    thanks


    Added after 1 59 minutes:


    i've built my project with Qt 4.7.4, the bug is not there
    it's only in 4.8 it seems
    Last edited by mkdotcom; 17th April 2012 at 15:14.

Similar Threads

  1. Replies: 0
    Last Post: 22nd September 2010, 14:31
  2. Replies: 1
    Last Post: 20th February 2010, 10:28
  3. Replies: 0
    Last Post: 13th July 2007, 22:45
  4. Replies: 1
    Last Post: 16th February 2007, 07:22
  5. 4.1 to 4.1.1, qtextedit
    By jey in forum Qt Programming
    Replies: 5
    Last Post: 9th March 2006, 12:48

Bookmarks

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.