How to associate an extension with a default program in C++?How do you set, clear, and toggle a single bit?What are the differences between a pointer variable and a reference variable in C++?How do I iterate over the words of a string?How can I profile C++ code running on Linux?The Definitive C++ Book Guide and ListWhat is the effect of extern “C” in C++?What is the “-->” operator in C++?How do I install pip on Windows?C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?Why is reading lines from stdin much slower in C++ than Python?
Have the writers and actors of GOT responded to its poor reception?
Driving a school bus in the USA
Save my secrets!
Working hours and productivity expectations for game artists and programmers
What animals or plants were used to illustrate ideas of physics?
How to get all possible paths in 0/1 matrix better way?
Is my homebrew Awakened Bear race balanced?
Why wear sunglasses in indoor velodromes?
Why does a table with a defined constant in its index compute 10X slower?
Prints each letter of a string in different colors. C#
Have GoT's showrunners reacted to the poor reception of the final season?
Why didn't Daenerys' advisers suggest assassinating Cersei?
Using `printf` to print variable containing `%` percent sign results in "bash: printf: `p': invalid format character"
Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario
Taylor series leads to two different functions - why?
Why does Taylor’s series “work”?
Why using a variable as index of a list-item does not retrieve that item with clist_item:Nn?
When did Britain learn about the American Declaration of Independence?
Was Tyrion always a poor strategist?
If partial derivatives of a harmonic function are constant, is the function linear?
Does the US Supreme Court vote using secret ballots?
Cycling to work - 30mile return
What's is the easiest way to purchase a stock and hold it
How does this piece of code determine array size without using sizeof( )?
How to associate an extension with a default program in C++?
How do you set, clear, and toggle a single bit?What are the differences between a pointer variable and a reference variable in C++?How do I iterate over the words of a string?How can I profile C++ code running on Linux?The Definitive C++ Book Guide and ListWhat is the effect of extern “C” in C++?What is the “-->” operator in C++?How do I install pip on Windows?C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?Why is reading lines from stdin much slower in C++ than Python?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a little problem. Basically with Qt I saved an extension (example: .c--) in the registry editor with an icon with QSettings class. The only problem is that I would like to make sure that when you open this file with the extension (.c--) and it opens a software by default. I had never done this before in C ++ and after my research on the web I found nothing. So that's why I was wondering. Thank you for helping.
QSettings
reg("HKEY_CURRENT_USER\SOFTWARE\Classes\.c--\DefaultIcon",
QSettings::NativeFormat);
eg.setValue("Default",
"path_to_icon");
//Code for open the .c-- extension with a program ?
c++ windows qt registry
add a comment |
I have a little problem. Basically with Qt I saved an extension (example: .c--) in the registry editor with an icon with QSettings class. The only problem is that I would like to make sure that when you open this file with the extension (.c--) and it opens a software by default. I had never done this before in C ++ and after my research on the web I found nothing. So that's why I was wondering. Thank you for helping.
QSettings
reg("HKEY_CURRENT_USER\SOFTWARE\Classes\.c--\DefaultIcon",
QSettings::NativeFormat);
eg.setValue("Default",
"path_to_icon");
//Code for open the .c-- extension with a program ?
c++ windows qt registry
4
"after my research on the web I found nothing" - MSDN had a whole chapter on this topic: File Types and File Associations, in particular look at How to Register a File Type for a New Application and Registering a File Type.
– Remy Lebeau
Mar 23 at 17:57
@Remy: To be fair to OP, Microsoft has been using the terminology of "Default Programs" rather than the correct technical term "File Association" for quite a few versions of Windows now.
– Ben Voigt
Mar 23 at 22:39
add a comment |
I have a little problem. Basically with Qt I saved an extension (example: .c--) in the registry editor with an icon with QSettings class. The only problem is that I would like to make sure that when you open this file with the extension (.c--) and it opens a software by default. I had never done this before in C ++ and after my research on the web I found nothing. So that's why I was wondering. Thank you for helping.
QSettings
reg("HKEY_CURRENT_USER\SOFTWARE\Classes\.c--\DefaultIcon",
QSettings::NativeFormat);
eg.setValue("Default",
"path_to_icon");
//Code for open the .c-- extension with a program ?
c++ windows qt registry
I have a little problem. Basically with Qt I saved an extension (example: .c--) in the registry editor with an icon with QSettings class. The only problem is that I would like to make sure that when you open this file with the extension (.c--) and it opens a software by default. I had never done this before in C ++ and after my research on the web I found nothing. So that's why I was wondering. Thank you for helping.
QSettings
reg("HKEY_CURRENT_USER\SOFTWARE\Classes\.c--\DefaultIcon",
QSettings::NativeFormat);
eg.setValue("Default",
"path_to_icon");
//Code for open the .c-- extension with a program ?
c++ windows qt registry
c++ windows qt registry
asked Mar 23 at 17:21
AnthonyAnthony
459
459
4
"after my research on the web I found nothing" - MSDN had a whole chapter on this topic: File Types and File Associations, in particular look at How to Register a File Type for a New Application and Registering a File Type.
– Remy Lebeau
Mar 23 at 17:57
@Remy: To be fair to OP, Microsoft has been using the terminology of "Default Programs" rather than the correct technical term "File Association" for quite a few versions of Windows now.
– Ben Voigt
Mar 23 at 22:39
add a comment |
4
"after my research on the web I found nothing" - MSDN had a whole chapter on this topic: File Types and File Associations, in particular look at How to Register a File Type for a New Application and Registering a File Type.
– Remy Lebeau
Mar 23 at 17:57
@Remy: To be fair to OP, Microsoft has been using the terminology of "Default Programs" rather than the correct technical term "File Association" for quite a few versions of Windows now.
– Ben Voigt
Mar 23 at 22:39
4
4
"after my research on the web I found nothing" - MSDN had a whole chapter on this topic: File Types and File Associations, in particular look at How to Register a File Type for a New Application and Registering a File Type.
– Remy Lebeau
Mar 23 at 17:57
"after my research on the web I found nothing" - MSDN had a whole chapter on this topic: File Types and File Associations, in particular look at How to Register a File Type for a New Application and Registering a File Type.
– Remy Lebeau
Mar 23 at 17:57
@Remy: To be fair to OP, Microsoft has been using the terminology of "Default Programs" rather than the correct technical term "File Association" for quite a few versions of Windows now.
– Ben Voigt
Mar 23 at 22:39
@Remy: To be fair to OP, Microsoft has been using the terminology of "Default Programs" rather than the correct technical term "File Association" for quite a few versions of Windows now.
– Ben Voigt
Mar 23 at 22:39
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316413%2fhow-to-associate-an-extension-with-a-default-program-in-c%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316413%2fhow-to-associate-an-extension-with-a-default-program-in-c%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
4
"after my research on the web I found nothing" - MSDN had a whole chapter on this topic: File Types and File Associations, in particular look at How to Register a File Type for a New Application and Registering a File Type.
– Remy Lebeau
Mar 23 at 17:57
@Remy: To be fair to OP, Microsoft has been using the terminology of "Default Programs" rather than the correct technical term "File Association" for quite a few versions of Windows now.
– Ben Voigt
Mar 23 at 22:39