![]() Registered Member ![]()
|
Hello,
I'm trying to create a kdialog box with a text input box and a couple of check boxes below this. I've been unable to find any examples showing how to generate check boxes. What I'm looking for is like that presented when requesting '--dontagain'. A small box that will show a tick (or cross) and a text message to its right explaining the check box: ![]() Does anyone know if this is possible with kdialog? Thank you. |
![]() Registered Member ![]()
|
KDE Dialogs
By my knowledge you are seeing all options with the ' kdialog --help'. No radio buttons other than: https://techbase.kde.org/Development/Tu ... -dontagain Tutorials Shell Scripting with KDE Dialogs: https://techbase.kde.org/Development/Tu ... DE_Dialogs Little Girl's Mostly Linux Blog - KDialog: https://mostlylinux.wordpress.com/bashs ... g/kdialog/ Alternatives with the Qt5 - PyDialog (PyQt5): https://www.linux-apps.com/p/1149912/
- Mixing: 'bash' + qmlscene + qml = check buttons from the script files Simple qml dialogs can be used from the scripts with the help of the qmlscene: http://doc.qt.io/qt-5/qtquick-qmlscene.html An example: Making example.sh:
and checkBox.qml:
Executing the example.sh... ![]() More: CheckBox QML Type - http://doc.qt.io/qt-5/qml-qtquick-contr ... ckbox.html |
![]() Registered Member ![]()
|
Thanks Rog131, that looks like a great answer.
![]() Unfortunately, qmlscene is not available to me. I'm still on QT 4.8.6 and appears that I can't install QT5 without some major breakages. If I'm ever able to upgrade, I'll try your solution. Thank you. |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]