This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Substitution for the kdialog shell helper tool

Tags: None
(comma "," separated)
User avatar
l3u
Registered Member
Posts
38
Karma
0
OS
Hi :-)

With KDE 3 and 4, there was the "kdialog" helper tool to be used in shell scripts. I read that, when moving to KF5, one should substitute the kdialog classes with qdialog. Also, at least here on Gentoo, there's no kdialog program using Qt 5 anymore (only the Qt 4 / KDE 4 version is left).

So is there any followup tool so that one can keep scripting with QDialogs?

Thanks for all help!
wolfi323
Registered Member
Posts
1129
Karma
11
OS
l3u wrote:I read that, when moving to KF5, one should substitute the kdialog classes with qdialog.

True, if you write an application using the KDE Frameworks/Qt5.
QDialog should offer everything that KDialog did, the latter is part of KDELibs4Support and deprecated (but still provided for easier porting of KDE4 applications, it probably will get removed in "KDE6" though).

But that doesn't necessarily mean that you shouldn't use the "kdialog" utility any more... ;)
In this regard "kdialog" is just an application name, unrelated to how the classes may be called or which one may be preferred or deprecated.
It doesn't even use KDialog for every dialog it supports, but other KDE dialog classes as well.

Also, at least here on Gentoo, there's no kdialog program using Qt 5 anymore (only the Qt 4 / KDE 4 version is left).

And?
The KDE4 version should work fine, no?

Of course it uses Qt4/kdelibs4, but that shouldn't matter really.

It has been ported to KF5 (though it still uses KDialog for some dialogs internally), but it is part of kde-baseapps, which hasn't been released in a KF5 version yet.
You'd have to checkout the "frameworks" branch and compile that, if you want to use it.

So is there any followup tool so that one can keep scripting with QDialogs?

kdialog.
At least I don't know another one.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]