Text interaction flags are not working
-
I am working with a QTextBrowser in QT4.7, I try to set the interaction flags as follows:
@textBrowser.setTextInteractionFlags(Qt::LinksAccessibleByMouse | Qt::LinksAccessibleByKeyboard);@
The links are not accessible using the mouse without enabling text selection, but they are accessible using the keyboard. What is going wrong?
-
Since I can't seem to get it working correctly I am working around the issue. I am listening for selectionChanged() on the QTextBrowser and then taking the QTextBrowser's QTextDocument and calling clearSelection() on its QTextCursor.
Possible related bug: "https://bugreports.qt-project.org/browse/QTBUG-1186":https://bugreports.qt-project.org/browse/QTBUG-1186