[pkg-gnupg-maint] libqgpgme15 and Qt6

Andre Heinecke aheinecke at gnupg.org
Fri Nov 24 03:40:47 GMT 2023


Hi Ron,

On Friday, 24 November 2023 03:34:36 CET Ron Murray wrote:
> I've written an app using Qt5, and I'm in the process of converting it to 
> Qt6. It involves some crypto work, and I've been using QGpgME to do that. 
> I'm using Debian trixie, so that involved libqgpgme15.
> I've discovered that the crypto functions are not working. Using the code 
> that worked fine with Qt5, I get a segfault when it gets to the exec() 
> function. Typical code:
> QGpgME::KeyListJob *keylistjob = QGpgME::openpgp()->keyListJob(false, 
> false, false);
> GpgME::KeyListResult listresult = keylistjob->exec(QStringList() <<
> ID,
> true, recipient); // Only secret keys
> (segfaults on the second line).

That can happen if there is no support found for OpenPGP on your system. If 
you have not checked EngineInfo for gpg engine beforehand.. But please do not 
respond here this is the wrong place for it. Please take this over to https://
dev.gnupg.org/

> Is libqgpgme15 compatible with Qt6? Have there been any changes in the 
> calling procedure for exec()?

Yes. We are compatible. Since QGpgME is deeply rooted in KDE we are following 
along with the transition there. As mentioned your problem does not have 
anything to do with exec but this is the wrong channel to debug your code.

Best Regards,
Andre

-- 
GnuPG.com - a brand of g10 Code, the GnuPG experts.

g10 Code GmbH, Erkrath/Germany, AG Wuppertal HRB14459
GF Werner Koch, USt-Id DE215605608, www.g10code.com.

GnuPG e.V., Rochusstr. 44, D-40479 Düsseldorf.  VR 11482 Düsseldorf
Vorstand: W.Koch, B.Reiter, A.Heinecke        Mail: board at gnupg.org
Finanzamt D-Altstadt, St-Nr: 103/5923/1779.   Tel: +49-211-28010702
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 5655 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnupg-maint/attachments/20231124/790376fa/attachment.sig>


More information about the pkg-gnupg-maint mailing list