Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.5.1, 5.6.0, 5.7.0
-
None
-
My system: Windows 8.1 x64, project compiled with mingw 5.3.0. I was also able to reproduce it on Windows 7 and Kubuntu 15.10.
Description
How to reproduce bug:
- Create a new document in Google Docs with multiple lines, for example with this content :
first line
second line - Create Qt Widgets Project with following code; build and run it:
main.cpp
#include <QApplication> #include <QTextEdit> int main(int argc, char *argv[]) { QApplication a(argc, argv); QTextEdit te; te.show(); return a.exec(); }
- Copy both lines from the document and insert it into QTextEdit
- You can see now that the second line overrides the first line
This happens only if the selected text contains the end of line and is inserted at the first position of QTextEdit. It seems that the problem is in the line spacing: I was able to move one line from another by pressing the Enter many times.
Attachments
Issue Links
- relates to
-
QTBUG-103714 cut & paste checkboxes: checkbox is lost
- Closed