Not a bug, possibly a feature request.
It is not an editable field, hence grayed out, not sure whether it is possible make it selecable without making in changable too.
The QLineEdit has been set enabled:false preventing any selection, should have been readOnly:true instead.
(From Qt doc: In read-only mode, the user can still copy the text to the clipboard, or drag and drop the text (if echoMode() is Normal), but cannot edit it.)
Well, it is set to readOnly:True and enabled:false
The problem with setting it to enabled:true is that it then pretends to be editable, but is not.
So if we change this (and yes, this would indeed work), I clearly see issues and questions comming about about why it cannot get changed
What do you mean by "It pretends to be editable"? That the user has no immediate visual feedback that he can't change it when readOnly is true and enabled is true as well?
But then let's just change it in QtLabel, would give the same look as the display of file path in LibreOffice, which is nicer than a grey entry field anyway.
A grey entry field makes sense if in some circumstances the text could be enabled, and here clearly it will never be editable that's display only.
Could be a nice way to start to get involved.
If you could just point me where in the code these specific QLineEdit's are, I haven't found them (by doing a stupid search all in the source files).
Sorry I haven't wanted to reset the status "PR Created", it is due to simultaneous posting I suppose.
And the list is disabled, I can't reset it to PR Created ??
Comments
Not a bug, possibly a feature request.
It is not an editable field, hence grayed out, not sure whether it is possible make it selecable without making in changable too.
In reply to Not a bug, possibly a… by Jojo-Schmitz
Other software do it without problem.
Here LibreOffice:
I said I don't know whether it is possible, not that it definitly is not. And I still don't know, need to check whether Qt has provisioning for this.
In reply to I said I don't know whether… by Jojo-Schmitz
label->setTextInteractionFlags(Qt::TextSelectableByMouse);
Ok, seems you're ready for your first pull request then ;-)
Doesn't work BTW, that field is not a label but a QLineEdit (the Text "File Path:" sits in a QLabel though, but that won't help here)
In reply to Doesn't work BTW, that field… by Jojo-Schmitz
The QLineEdit has been set enabled:false preventing any selection, should have been readOnly:true instead.
(From Qt doc: In read-only mode, the user can still copy the text to the clipboard, or drag and drop the text (if echoMode() is Normal), but cannot edit it.)
Well, it is set to readOnly:True and enabled:false
The problem with setting it to enabled:true is that it then pretends to be editable, but is not.
So if we change this (and yes, this would indeed work), I clearly see issues and questions comming about about why it cannot get changed
What do you mean by "It pretends to be editable"? That the user has no immediate visual feedback that he can't change it when readOnly is true and enabled is true as well?
But then let's just change it in QtLabel, would give the same look as the display of file path in LibreOffice, which is nicer than a grey entry field anyway.
A grey entry field makes sense if in some circumstances the text could be enabled, and here clearly it will never be editable that's display only.
Workaround is to include "$F" in header/footer and copy from there ;-)
This would indeed work.
Wonder whether to use the same for MuseScore Version, Revision and API-Level too.
And you're sure that you don't want to create a PR for this yourself?
See https://github.com/musescore/MuseScore/pull/4664
Could be a nice way to start to get involved.
If you could just point me where in the code these specific QLineEdit's are, I haven't found them (by doing a stupid search all in the source files).
In reply to Could be a nice way to start… by frfancha
Ok, saw your commit. So just one remaining challenge, be quicker than Jojo ;-)
In reply to Ok. So just one remaining… by frfancha
Sorry I haven't wanted to reset the status "PR Created", it is due to simultaneous posting I suppose.
And the list is disabled, I can't reset it to PR Created ??
At first I had to search for it too, where looking for some files named 'scoreInfo' or 'scoreProperties' or the like, but it is in 'metaedit.{ui,cpp}'
Fixed in branch master, commit 0fa7fcb9ca
fix #283851: File path and name in score properties in unselectable and can't be copied to clipboard
Fixed in branch master, commit 8e6883c6ea
_Merge pull request #4664 from Jojo-Schmitz/metaedit-copy-paste-filePath
fix #283851: File path and name in score properties in unselectable and can't be copied to clipboard_
Fixed in branch 3.0.5, commit 09b176fce4
_Merge pull request #4664 from Jojo-Schmitz/metaedit-copy-paste-filePath
fix #283851: File path and name in score properties in unselectable and can't be copied to clipboard_
Automatically closed -- issue fixed for 2 weeks with no activity.