QCA-GnuGP tutorials, samples



  • I have compiled qca-gnupg-2.0.0-beta3 and copied the dll's in QTDIR\plugins\crypto and this is my code to test the library.
    @
    // QtCrypto has the declarations for all of QCA
    #include <QtCrypto>

    #include <QCoreApplication>
    #include <QDebug>

    int main(int argc, char **argv)
    {
    QCoreApplication app(argc, argv);

        // the Initializer object sets things up, and
        // also does cleanup when it goes out of scope
        QCA::Initializer init;
    

    qDebug() << "after here, fails";

        // must always check that an algorithm is supported before using it
        if( !QCA::isSupported("openpgp") ) {
                qDebug() << "openpgp not supported!\n";
        } else {
    

    qDebug() << "openpgp supported!\n";
    }

        return 0;
    

    }
    @

    When I compiled my code, all it's fine, but at runtime, fails.

    There are anybody that had used successfully this library and want to share a "howto"?

    Thanks


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.