QUrl is not longer implicitly convertible to KFileItem with KF6. Use initializer_list<KFileItem> to construct the temporary lists.