Important: Please read the Qt Code of Conduct -

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

    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.

  • Lifetime Qt Champion


    That might be a regression, did you check whether something similar was reported on the "bug report system": ?

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

Log in to reply