Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Text interaction flags are not working
Forum Updated to NodeBB v4.3 + New Features

Text interaction flags are not working

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tx34
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tx34
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved