DiKorsch
DiKorsch

Reputation: 1270

Create own URL Protocol with QT4

I have already found out, how I create my own protocol for windows (LINK).

Now I have tried to create such an entry with my QT application, but I have some problems:

  1. I'm not able to write in HKEY_CLASSES_ROOT. I think, I need administrator privileges, but how do I achieve that? I don't want, that my app is always running in Admin-mode.

  2. I don't know, how to write the "(Standard)"-Entries. If I create this entries manually and export them as a reg-file this "(Standard)"-Entries look like

[HKEY_CLASSES_ROOT\myprotocol]
@="URL:SomeDescription"

Is there any possibility to create these entries with Qt's QSettings?

Upvotes: 0

Views: 183

Answers (1)

MC ND
MC ND

Reputation: 70923

For the QSettings try this.

For the admin rights, NO, admin rights are needed to create the registry entries.

Upvotes: 1

Related Questions