Qt Programming Language
-
@Annabelle said in Qt Programming Language:
My screenreader can't tell if an underline has a color or is squigly. It can say _ (underline). Is that the mark you're talking about?
In your latest screenshot, there was a red squiggly line underneath "#include". Did your screenreader announce that? If not, don't worry -- the error is repeated under the Error List pane: "cannot open source Hello World! file "stdafx.h". Did your screenreader announce that?
@Annabelle said in Qt Programming Language:
Here's a screenshot of yet another error.
Change
<stdafx.h>
to"stdafx.h"
. In other words, change the angular brackets to double quotation marks. -
@JKSH said in Qt Programming Language:
@Annabelle said in Qt Programming Language:
My screenreader can't tell if an underline has a color or is squigly. It can say _ (underline). Is that the mark you're talking about?
In your latest screenshot, there was a red squiggly line underneath "#include". Did your screenreader announce that? If not, don't worry -- the error is repeated under the Error List pane: "cannot open source Hello World! file "stdafx.h". Did your screenreader announce that?
@Annabelle said in Qt Programming Language:
Here's a screenshot of yet another error.
Change
<stdafx.h>
to"stdafx.h"
. In other words, change the angular brackets to double quotation marks.It seems that when I type #include "stdafx.h", the quotation marks, for some reason, are automatically changed to angular brackets (<>). How do I prevent that from happening?
-
@Annabelle
This looks fault-free, and seems to have run without error! I don't know where the "Hello world" output went though? On thatOutput
tab you have theShow output from
combobox set toDebug
, you may have to set that to something else to see/hear the program output? -
@JonB said in Qt Programming Language:
@Annabelle
This looks fault-free, and seems to have run without error! I don't know where the "Hello world" output went though? On thatOutput
tab you have theShow output from
combobox set toDebug
, you may have to set that to something else to see/hear the program output?How do I do that, I wonder? After I make the "Hello World" program, what do I do next?
-
@Annabelle
Ignore my comment about theDebug
tab, I think. The question is: when you run the program, it should outputHello world!
, where does that output go to? Does it maybe open a console window, send it there, and then close it as soon as your program finishes, all of which would be near "instantaneous"? It may depend on your project type, I don't know. You may need hep on this from VS C++ people here.... -
@Annabelle said in Qt Programming Language:
@JonB said in Qt Programming Language:
@Annabelle
I don't know where the "Hello world" output went though? On thatOutput
tab you have theShow output from
combobox set toDebug
, you may have to set that to something else to see/hear the program output?How do I do that, I wonder?
When you run your program (Ctrl + F5), a window should pop up and that window should contain the words "Hello world!". The window will close if you press any key while the window has focus.
Did JAWS read the contents of that window to you?
-
@JonB said in Qt Programming Language:
@Annabelle
Ignore my comment about theDebug
tab, I think. The question is: when you run the program, it should outputHello world!
, where does that output go to? Does it maybe open a console window, send it there, and then close it as soon as your program finishes, all of which would be near "instantaneous"? It may depend on your project type, I don't know. You may need hep on this from VS C++ people here....This is what the output window looks like in a screenshot.
What is the meaning of this message?
"The program '[2880] Hello World!.exe' has exited with code 0 (0x0)." -
"The program '[2880] Hello World!.exe' has exited with code 0 (0x0)."
It's just Visual Studio letting you know good news! It's telling you that you just ran your program executable (
Hello World!.exe
), it ran to completion and exited, and it returned an "exit code" of 0 (which is good, is what your code does, but which you don't care about).My question still remains, however. When that program ran it sent the string
Hello World!
to its "output" (that's the purpose of this program). Where did that "output" go? (I don't use Visual Studio, and with your project type, so I don't know. @JKSH said earlier:When you run your program (Ctrl + F5), a window should pop up and that window should contain the words "Hello world!". The window will close if you press any key while the window has focus.
Did JAWS read the contents of that window to you?So how does this behave for you? Did you get to hear about that output? Did you press a key to close a window which had opened?
-
@JonB said in Qt Programming Language:
"The program '[2880] Hello World!.exe' has exited with code 0 (0x0)."
It's just Visual Studio letting you know good news! It's telling you that you just ran your program executable (
Hello World!.exe
), it ran to completion and exited, and it returned an "exit code" of 0 (which is good, is what your code does, but which you don't care about).My question still remains, however. When that program ran it sent the string
Hello World!
to its "output" (that's the purpose of this program). Where did that "output" go? (I don't use Visual Studio, and with your project type, so I don't know. @JKSH said earlier:When you run your program (Ctrl + F5), a window should pop up and that window should contain the words "Hello world!". The window will close if you press any key while the window has focus.
Did JAWS read the contents of that window to you?So how does this behave for you? Did you get to hear about that output? Did you press a key to close a window which had opened?
@JonB said in Qt Programming Language:
"The program '[2880] Hello World!.exe' has exited with code 0 (0x0)."
It's just Visual Studio letting you know good news! It's telling you that you just ran your program executable (
Hello World!.exe
), it ran to completion and exited, and it returned an "exit code" of 0 (which is good, is what your code does, but which you don't care about).My question still remains, however. When that program ran it sent the string
Hello World!
to its "output" (that's the purpose of this program). Where did that "output" go? (I don't use Visual Studio, and with your project type, so I don't know. @JKSH said earlier:When you run your program (Ctrl + F5), a window should pop up and that window should contain the words "Hello world!". The window will close if you press any key while the window has focus.
Did JAWS read the contents of that window to you?So how does this behave for you? Did you get to hear about that output? Did you press a key to close a window which had opened?
@JonB said in Qt Programming Language:
"The program '[2880] Hello World!.exe' has exited with code 0 (0x0)."
It's just Visual Studio letting you know good news! It's telling you that you just ran your program executable (
Hello World!.exe
), it ran to completion and exited, and it returned an "exit code" of 0 (which is good, is what your code does, but which you don't care about).My question still remains, however. When that program ran it sent the string
Hello World!
to its "output" (that's the purpose of this program). Where did that "output" go? (I don't use Visual Studio, and with your project type, so I don't know. @JKSH said earlier:When you run your program (Ctrl + F5), a window should pop up and that window should contain the words "Hello world!". The window will close if you press any key while the window has focus.
Did JAWS read the contents of that window to you?So how does this behave for you? Did you get to hear about that output? Did you press a key to close a window which had opened?
I didn't hear about the output. When I pressed the shortcut to run the program, it first asked me if I wanted to build it, and I said "Yes". Then it launched the Command Prompt. What's up with that, I wonder?
-
@JonB said in Qt Programming Language:
@Annabelle
You wrote:Then it launched the Command Prompt.
It is probably in that Command Prompt window that I would expect the text of
Hello World!
to have been output. Is that possible?JAWS doesn't show anything in the Command Prompt. If the text was shown, I'd be able to read it with the left and right arrow keys.
-
@Annabelle said in Qt Programming Language:
JAWS doesn't show anything in the Command Prompt. If the text was shown, I'd be able to read it with the left and right arrow keys.
This user (KrolPolski) found that arrow keys don't work in the Command Prompt for JAWS, but another user (Graham87) described a workaround: https://www.reddit.com/r/Blind/comments/8zf1f1/using_a_command_prompt_with_jaws/
See if you can get JAWS to read something on the Command Prompt before it closes. The Command Prompt should contain the text, "Hello world!"
If you still have no luck with JAWS, does the Microsoft Narrator work?
-
@JKSH said in Qt Programming Language:
@Annabelle said in Qt Programming Language:
JAWS doesn't show anything in the Command Prompt. If the text was shown, I'd be able to read it with the left and right arrow keys.
This user (KrolPolski) found that arrow keys don't work in the Command Prompt for JAWS, but another user (Graham87) described a workaround: https://www.reddit.com/r/Blind/comments/8zf1f1/using_a_command_prompt_with_jaws/
See if you can get JAWS to read something on the Command Prompt before it closes. The Command Prompt should contain the text, "Hello world!"
If you still have no luck with JAWS, does the Microsoft Narrator work?
I ran it again, and in the Command Prompt, I got:
"Hello World! Press any key to continue..."
What do I do next? -
What do I do next?
Well, that's it for "Hello World": you've done it! (And very well done!) You have written a program, compiled it, and run it successfully with the expected output.
What you do now is up to you :) If you mean you want to turn to Qt you'd have to install it, I don't know what you intended to do.
-
@JonB said in Qt Programming Language:
What do I do next?
Well, that's it for "Hello World": you've done it! (And very well done!) You have written a program, compiled it, and run it successfully with the expected output.
What you do now is up to you :) If you mean you want to turn to Qt you'd have to install it, I don't know what you intended to do.
I wonder if I could make Qt programs with Visual Studio. Or is that just for C++?
-
@Annabelle
You can integrate Visual Studio with Qt to develop programs, or you can use Qt Creator as your "IDE" (Integrated Development Environment). I don't know whether previous discussions have indicated a preference for which one for you. -
@JonB said in Qt Programming Language:
@Annabelle
You can integrate Visual Studio with Qt to develop programs, or you can use Qt Creator as your "IDE" (Integrated Development Environment). I don't know whether previous discussions have indicated a preference for which one for you.I think from what I've experienced so far, Visual Studio is the more accessible one for me. That being said, how would I make Qt programs with Visual Studio?