Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Text selection on iOS
Forum Updated to NodeBB v4.3 + New Features

Text selection on iOS

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 415 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.
  • D Offline
    D Offline
    DaveK 0
    wrote on last edited by
    #1

    I have several QLineEdits and QLabels in a QWidgets Application built with Qt C++. Text selection when running on a desktop acts as 'expected' - meaning you can click and drag to select text and right click to copy it.

    However on iOS, I would like to have a more iOS native like method of selecting text / copying it. Currently text can be selected with a single tap and drag of the finger (similar to with a desktop pointer). I cannot copy text.

    Instead of a single tap and drag I would like a user to tap & hold to select text and be presented with the iOS "Copy / Look Up / Share..." popup menu like the one below (screen shot from Safari).iOS Popup for Copy / Loop Up / Share...
    alt text

    Additionally it would be nice if a single tap and drag would scroll inside the QLineEdit (instead of selecting text).

    Can I achieve this type of UI Interaction?

    My QLabels and QLineEdits have only the 'TextSelectableByMouse' flag on. QLineEdits are also read only.

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

      Hi,

      I currently can't answer that question but allow me some suggestion: modifying how text is manipulated like that will get you in trouble.

      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