Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QCA does not work (Qt5.8, Win7-64)

QCA does not work (Qt5.8, Win7-64)

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 839 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ad1170A Offline
    ad1170A Offline
    ad1170
    wrote on last edited by
    #1

    Hi,

    i have compiled last version of QCA (2.2.0) and linked to my application. So far everything semms to be ok. The call for supported "openpgp" after QCA::init get the right result (if(QCA::isSupported("openpgp")) returns true). But if i try to load a PGP key with QCA::PGPKey pSKey("keyfile.asc"); ends up with "QIODevice::read (gpgQCAPlugin::SProcess): device not open" in the application output window and the app is dieing. What's going wrong?
    THX.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From an educated guess, you are using a relative path thus your application can't find the file.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      ad1170A 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        From an educated guess, you are using a relative path thus your application can't find the file.

        ad1170A Offline
        ad1170A Offline
        ad1170
        wrote on last edited by ad1170
        #3

        Thanks. After a deep debug session, i have found the reason. The issue is wiped out by installing GnuPGP on the machine.... No one has told me that!
        Now i have some trouble on loading keys from a key file. The QCA::PGPKey key = QCA::PGPKey("keyfilr.asc") or QCA::PGPKey("keyfile.p12") (for the same key in pkcs12 format) return with "ErrorDecode". Might be, i have misundersood something. I think i can load the keys regardless of any keystore. But with keystore, the decryption works so far. Thanks again.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved