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. Selecting Texts by double-click not possible in Qt5.1.1

Selecting Texts by double-click not possible in Qt5.1.1

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • R Offline
    R Offline
    rakor
    wrote on last edited by
    #1

    Hello!

    After switching from Qt4.8 to Qt5.1.1 I found a change how a selectable QLabel reacts to double-clicks.

    I have set the TextInteraction Flag:
    label->setTextInteractionFlags(Qt::TextBrowserInteraction);

    With Qt4 when double-clicking this Label the clicked word is selected (three clicks select all of the text).

    With Qt5 there is no selection done when clicking the label. Only way to select text is by selecting it with hold down mouse button.

    Is there a way to get the old style back? This would make the handling for the users much easier.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That might be a regression, did you check whether something similar was reported on the "bug report system":http://bugreports.qt-project.org ?

      If not you could consider opening a new report with a complete minimal compilable example showing the behavior

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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