Nor is it easy as creating a container around the Text and setting the container's implicitWidth/implicitHeight.
I'm not really interested in adding this feature, so feel free to play around with this code.
Save it as ~/Desktop/test.qml then run qmlscene ~/Desktop/test.qml to run the test.qml. Feel free to find a solution then modify ~/.local/share/plasma/plasmoids/com.github.zren.commandoutput/ and test with https://zren.github.io/kde/docs/widget/#testing.
https://www.pling.com/u/dzwiedziu/ asked if I could optionally make text rotate
This isn't a trivial as setting
rotation: 270
https://doc.qt.io/qt-5/qml-qtquick-item.html#rotation-propNor is it easy as creating a container around the![2020-09-26___11-33-10](https://user-images.githubusercontent.com/416367/94344268-118c6600-ffec-11ea-8f48-ab829498d2b8.png)
Text
and setting the container'simplicitWidth
/implicitHeight
.I'm not really interested in adding this feature, so feel free to play around with this code.
Save it as
~/Desktop/test.qml
then runqmlscene ~/Desktop/test.qml
to run thetest.qml
. Feel free to find a solution then modify~/.local/share/plasma/plasmoids/com.github.zren.commandoutput/
and test with https://zren.github.io/kde/docs/widget/#testing.We could also look into
wrapMode: Text.WrapAnywhere
https://doc.qt.io/qt-5/qml-qtquick-text.html#wrapMode-prop