HTML Editor works in major browsers, but not in QtWebKit
pezzi last edited by
When selecting a stretch of text (even a single word), and then changing its style to bold, italics or underline, the operation completes correctly, but after that, several apparently random fragments of the text around it are selected.
If you install Python 2.7 and a recent PySide), the minimal code below reproduces the issue.
Just selecting part of the text and "BOLD"-ing it will randomly select other parts of the text.
Here is the sample code to reproduce ...
from PySide import QtGui, QtCore
def init(self, parent = None):
view = PySide.QtWebKit.QWebView(parent)
layout = QtGui.QVBoxLayout(self)
def main(argv = sys.argv):
app = QtGui.QApplication(sys.argv)
form = HTMLEditor()
if name == 'main':
Any idea what's going on here?