[QScintilla] Bug copying text on QScintilla

Scener Spanish spscener84 at gmail.com
Fri Jun 14 12:05:07 BST 2019

Hi, consider this snippet:

from PyQt5.Qt import *
from PyQt5.Qsci import QsciScintilla

if __name__ == '__main__':
    app = QApplication([])
    w = QsciScintilla()
    w.setText("hello world")

*Test1) *Run it, press ctrl+c, close the window and then open your system
clipboard viewer... for some reason on windows7 the is broken, you'll
binary content --> this
. That
means you won't be able to paste the content on a text editor.

*Test2) *Run it, press ctrl+c and then open your system clipboard viewer,
in this case you'll be able to see the copied content correctly, like this

This issue has really annoyed me in the past many times but I didn't know
how to reproduce it or what was the reason why the content I'd copied from
my app couldn't be pasted anymore


windows 7 ultimate
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit
(Intel)] on win32

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20190614/ef002295/attachment.html>

More information about the QScintilla mailing list