Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30051

QTextCursor and beginEditBlock breaks layout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0
    • 5.0.1
    • GUI: Text handling
    • None
    • Qt 5.0.1 on Mac OS 10.8.2.
    • c7a31d48e1e43409c50ac62305c06daf90c855a5

    Description

      I tried to ask about this around but I have not received any answers. I apologize for false alarm if I'm doing anything wrong as I'm new to Qt. That said...

      Please see the attached files. The problem is, when I try to remove some characters from QPlainTextEdit it corrupts the document. Specifically, I'm looping thought the text blocks and for each for them I remove first two characters from the line with removeSelectedText(), all operations are enclosed in one pair of beginEditBlock()/endEditBlock(). When the pair is disabled, the document stays in tact.

      Attachments

        1. begin-edit-block.pro
          0.3 kB
        2. block.mov
          14 kB
        3. main.cpp
          0.2 kB
        4. mainwindow.cpp
          1 kB
        5. mainwindow.h
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            ecir.hana Ecir Hana
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes