gui-qml
gui-qml copied to clipboard
Allow for selecting and copying text from the UI
Please describe the feature you'd like to see added.
As a user, I'd like to be able to select copy any text and copy from the UI (eg. to quickly share it or google).
Is your feature related to a problem, if so please describe it.
For now, I cannot select nor copy text form UI (eg. descriptions of inputs or settings). Then If I need this text, I need to write it manually.
Describe the solution you'd like
No response
Describe any alternatives you've considered
No response
Please leave any additional context
I used it on macOS M1, v25.99.0-dfad9947e903-dirty
I think you can do it with the keyboard: go to the position where you want to start copying with the cursor/ arrow keys, then press and hold shift selecting again with the arrow keys. I tried this before on the IPAddressValueInput, that was recently added to the project (#391), and it works as explained (after enabling it), please let me know if you can't or if there's another input/ control where this is not possible.
On the other hand, mouse text selection thru double click does not work properly yet, I tried to use selectByMouse: true property but it seems it clashes with the parent component MouseArea{} definition; I also read somewhere on stackoverflow that this is not desired in mobile platforms but I need to investigate further as there are some interesting notes on the QT documentation as well (here & here).
Would it make sense to detect if user uses mobile or desktop app and based on that have that turned on?
Selecting with shift key does not seem to work on my version though
Would it make sense to detect if user uses mobile or desktop app and based on that have that turned on?
Yes, we can do that.
Selecting with shift key does not seem to work on my version though
It works on desktop platform on Ubuntu OS, which one are you using?
I use macOS
I guess the assumption here is we're not talking about all text being selectable, but important information text surrounding things like peers details, transaction information
Desktop: on desktop I think we can make fields copyable, and when hovered show the copyable icon so this is apparent
Mobile: on mobile, a top on a field can show the copyable icon, then another tap to copy?
brainstorming here, I guess rules for copyable text can be placed under other