Version: (using KDE 4.4.2) OS: Linux Installed from: Ubuntu Packages When the system invokes kdesudo, it pops up a dialog box showing the command to be executed, and a password prompt. The command however cannot be copy-pasted (for example for googling it, or for executing it manually in a root shell).
*** Bug 395640 has been marked as a duplicate of this bug. ***
Should just need setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); set on the label, as in https://cgit.kde.org/kio.git/commit/?id=025e5e9957ff92c8196f820e9490f337ebfbe317
But make sure the Tab-chain doesn't break by making the labels interactable.
Good point!
Opened PR: https://invent.kde.org/frameworks/kwidgetsaddons/-/merge_requests/225
Git commit e11350708a22d13c8b248815900a98d8bf8c4e9f by Sune Vuorela, on behalf of Christian David. Committed on 22/11/2023 at 10:34. Pushed by sune into branch 'master'. Allow to select text of KPasswordDialog labels Made this primary with _kdesu_ in mind. Now you can copy&paste the command which shall be executed. M +1 -0 src/kpassworddialog.cpp M +7 -4 src/kpassworddialog.ui https://invent.kde.org/frameworks/kwidgetsaddons/-/commit/e11350708a22d13c8b248815900a98d8bf8c4e9f