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. Qt Programming Language

Qt Programming Language

Scheduled Pinned Locked Moved Unsolved General and Desktop
331 Posts 17 Posters 306.8k Views
  • 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.
  • J JKSH
    29 Oct 2018, 07:40

    @Annabelle said in Qt Programming Language:

    I tried compiling a Qt version of "Hello World" in Visual Studio, but it said there were a bunch of errors, despite the fact that I copied and pasted the code into a text document from the Qt Documentation.

    Before you can use Qt in Visual Studio, you need to perform some additional setup. For now, let's skip all this complexity. Just follow the tutorial without using Qt for now.

    Then I pasted that code into Visual Studio's "Text Editor". On http://www.learncpp.com, there's a different way of printing the "Hello World" project, where the code has something called "cout", which I don't understand. What's the difference between these two codes? That is, the Qt code of "Hello World", and the C++ code of "Hello World"? I'm confused on this one!

    A "Hello World" program is just a very simple program to help programmers to start using a new language or library. These are not unique; there are many variants of C++ "Hello Worlds" and many variants of Qt "Hello Worlds".

    • A C++ "Hello World" program introduces the programmer to the C++ language.
    • A Qt "Hello World" program introduces the programmer to the Qt library.

    cout stands for "character output". It is a place where your program can display some text.

    A Offline
    A Offline
    Annabelle
    wrote on 29 Oct 2018, 09:23 last edited by
    #209

    @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    I tried compiling a Qt version of "Hello World" in Visual Studio, but it said there were a bunch of errors, despite the fact that I copied and pasted the code into a text document from the Qt Documentation.

    Before you can use Qt in Visual Studio, you need to perform some additional setup. For now, let's skip all this complexity. Just follow the tutorial without using Qt for now.

    Then I pasted that code into Visual Studio's "Text Editor". On http://www.learncpp.com, there's a different way of printing the "Hello World" project, where the code has something called "cout", which I don't understand. What's the difference between these two codes? That is, the Qt code of "Hello World", and the C++ code of "Hello World"? I'm confused on this one!

    A "Hello World" program is just a very simple program to help programmers to start using a new language or library. These are not unique; there are many variants of C++ "Hello Worlds" and many variants of Qt "Hello Worlds".

    • A C++ "Hello World" program introduces the programmer to the C++ language.
    • A Qt "Hello World" program introduces the programmer to the Qt library.

    cout stands for "character output". It is a place where your program can display some text.

    If I lose focus with the text editor in Visual Studio while performing the examples in the tutorial, is there a keyboard shortcut for me to put it in focus again?

    J 1 Reply Last reply 29 Oct 2018, 23:26
    0
    • A Annabelle
      29 Oct 2018, 09:23

      @JKSH said in Qt Programming Language:

      @Annabelle said in Qt Programming Language:

      I tried compiling a Qt version of "Hello World" in Visual Studio, but it said there were a bunch of errors, despite the fact that I copied and pasted the code into a text document from the Qt Documentation.

      Before you can use Qt in Visual Studio, you need to perform some additional setup. For now, let's skip all this complexity. Just follow the tutorial without using Qt for now.

      Then I pasted that code into Visual Studio's "Text Editor". On http://www.learncpp.com, there's a different way of printing the "Hello World" project, where the code has something called "cout", which I don't understand. What's the difference between these two codes? That is, the Qt code of "Hello World", and the C++ code of "Hello World"? I'm confused on this one!

      A "Hello World" program is just a very simple program to help programmers to start using a new language or library. These are not unique; there are many variants of C++ "Hello Worlds" and many variants of Qt "Hello Worlds".

      • A C++ "Hello World" program introduces the programmer to the C++ language.
      • A Qt "Hello World" program introduces the programmer to the Qt library.

      cout stands for "character output". It is a place where your program can display some text.

      If I lose focus with the text editor in Visual Studio while performing the examples in the tutorial, is there a keyboard shortcut for me to put it in focus again?

      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 29 Oct 2018, 23:26 last edited by
      #210

      @Annabelle said in Qt Programming Language:

      If I lose focus with the text editor in Visual Studio while performing the examples in the tutorial, is there a keyboard shortcut for me to put it in focus again?

      Could you please describe what you were doing up to the moment where focus is lost?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      A 1 Reply Last reply 30 Oct 2018, 00:02
      0
      • J JKSH
        29 Oct 2018, 23:26

        @Annabelle said in Qt Programming Language:

        If I lose focus with the text editor in Visual Studio while performing the examples in the tutorial, is there a keyboard shortcut for me to put it in focus again?

        Could you please describe what you were doing up to the moment where focus is lost?

        A Offline
        A Offline
        Annabelle
        wrote on 30 Oct 2018, 00:02 last edited by
        #211

        @JKSH said in Qt Programming Language:

        @Annabelle said in Qt Programming Language:

        If I lose focus with the text editor in Visual Studio while performing the examples in the tutorial, is there a keyboard shortcut for me to put it in focus again?

        Could you please describe what you were doing up to the moment where focus is lost?

        I created a new project, which took me to the editor where there was some example text, then I deleted what was there. Next, I went to the tutorial where the "Hello World" code was, and I copied the code to the clipboard. When I pressed Alt+Tab to return to the text editor in Visual Studio to paste the newly-copied code, my screenreader didn't show it (the text editor), just a blank screen.

        J 1 Reply Last reply 30 Oct 2018, 14:09
        0
        • A Annabelle
          30 Oct 2018, 00:02

          @JKSH said in Qt Programming Language:

          @Annabelle said in Qt Programming Language:

          If I lose focus with the text editor in Visual Studio while performing the examples in the tutorial, is there a keyboard shortcut for me to put it in focus again?

          Could you please describe what you were doing up to the moment where focus is lost?

          I created a new project, which took me to the editor where there was some example text, then I deleted what was there. Next, I went to the tutorial where the "Hello World" code was, and I copied the code to the clipboard. When I pressed Alt+Tab to return to the text editor in Visual Studio to paste the newly-copied code, my screenreader didn't show it (the text editor), just a blank screen.

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 30 Oct 2018, 14:09 last edited by
          #212

          @Annabelle said in Qt Programming Language:

          I created a new project, which took me to the editor where there was some example text, then I deleted what was there. Next, I went to the tutorial where the "Hello World" code was, and I copied the code to the clipboard. When I pressed Alt+Tab to return to the text editor in Visual Studio to paste the newly-copied code, my screenreader didn't show it (the text editor), just a blank screen.

          Could it be that the screenreader was silent because there was no text inside the editor? What happens when you try to paste the newly-copied code?

          Also, try using Ctrl+Tab to cycle between sub-windows inside Visual Studio.

          One final word of advise: Please don't wait for me (or anyone else) to reply before you take action. Take the initiative to try different things (and search on Google) to see if you can solve the problem before someone replies.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          A 1 Reply Last reply 31 Oct 2018, 14:02
          0
          • J JKSH
            30 Oct 2018, 14:09

            @Annabelle said in Qt Programming Language:

            I created a new project, which took me to the editor where there was some example text, then I deleted what was there. Next, I went to the tutorial where the "Hello World" code was, and I copied the code to the clipboard. When I pressed Alt+Tab to return to the text editor in Visual Studio to paste the newly-copied code, my screenreader didn't show it (the text editor), just a blank screen.

            Could it be that the screenreader was silent because there was no text inside the editor? What happens when you try to paste the newly-copied code?

            Also, try using Ctrl+Tab to cycle between sub-windows inside Visual Studio.

            One final word of advise: Please don't wait for me (or anyone else) to reply before you take action. Take the initiative to try different things (and search on Google) to see if you can solve the problem before someone replies.

            A Offline
            A Offline
            Annabelle
            wrote on 31 Oct 2018, 14:02 last edited by
            #213

            @JKSH said in Qt Programming Language:

            @Annabelle said in Qt Programming Language:

            I created a new project, which took me to the editor where there was some example text, then I deleted what was there. Next, I went to the tutorial where the "Hello World" code was, and I copied the code to the clipboard. When I pressed Alt+Tab to return to the text editor in Visual Studio to paste the newly-copied code, my screenreader didn't show it (the text editor), just a blank screen.

            Could it be that the screenreader was silent because there was no text inside the editor? What happens when you try to paste the newly-copied code?

            Also, try using Ctrl+Tab to cycle between sub-windows inside Visual Studio.

            One final word of advise: Please don't wait for me (or anyone else) to reply before you take action. Take the initiative to try different things (and search on Google) to see if you can solve the problem before someone replies.

            I'm not sure why this didn't work, but I pasted the Hello World code in the text editor window, then when building the project, there were some errors. Even though I pasted the code without any changes.
            0_1540994545531_8d93dc3f-313e-41be-a836-59bb363386f9-image.png

            J 1 Reply Last reply 31 Oct 2018, 14:20
            0
            • A Annabelle
              31 Oct 2018, 14:02

              @JKSH said in Qt Programming Language:

              @Annabelle said in Qt Programming Language:

              I created a new project, which took me to the editor where there was some example text, then I deleted what was there. Next, I went to the tutorial where the "Hello World" code was, and I copied the code to the clipboard. When I pressed Alt+Tab to return to the text editor in Visual Studio to paste the newly-copied code, my screenreader didn't show it (the text editor), just a blank screen.

              Could it be that the screenreader was silent because there was no text inside the editor? What happens when you try to paste the newly-copied code?

              Also, try using Ctrl+Tab to cycle between sub-windows inside Visual Studio.

              One final word of advise: Please don't wait for me (or anyone else) to reply before you take action. Take the initiative to try different things (and search on Google) to see if you can solve the problem before someone replies.

              I'm not sure why this didn't work, but I pasted the Hello World code in the text editor window, then when building the project, there were some errors. Even though I pasted the code without any changes.
              0_1540994545531_8d93dc3f-313e-41be-a836-59bb363386f9-image.png

              J Offline
              J Offline
              JonB
              wrote on 31 Oct 2018, 14:20 last edited by JonB
              #214

              @Annabelle
              [EDIT: I have scrapped my suggestions here, read @mrjj's post below. He is right because of the error message number. You are using a .cs file extension and compiling your code as C# instead of C++ in Visual Studio. Change your filename extension to .cpp. You need to create a completely different kind of project in Visual Studio, it must be something like a "C++ project" and not a "CSharp project".]

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 31 Oct 2018, 14:24 last edited by
                #215

                Hi
                Im wondering about the file extension.
                Its .cs which would indicate a c sharp program
                and not a c++ one ?
                Maybe a wrong template was used to create it ?

                J 1 Reply Last reply 31 Oct 2018, 14:33
                4
                • M mrjj
                  31 Oct 2018, 14:24

                  Hi
                  Im wondering about the file extension.
                  Its .cs which would indicate a c sharp program
                  and not a c++ one ?
                  Maybe a wrong template was used to create it ?

                  J Offline
                  J Offline
                  JKSH
                  Moderators
                  wrote on 31 Oct 2018, 14:33 last edited by
                  #216

                  @mrjj said in Qt Programming Language:

                  Hi
                  Im wondering about the file extension.
                  Its .cs which would indicate a c sharp program
                  and not a c++ one ?
                  Maybe a wrong template was used to create it ?

                  @mrjj is right; you have created a C# project instead of a C++ project. When you create a project, select "Visual C++".

                  I can't remember what Visual Studio 2015 is like, but Visual Studio 2017 lets me choose Visual C++ > Windows Desktop > Windows Console Application.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  A 1 Reply Last reply 31 Oct 2018, 17:36
                  0
                  • J JKSH
                    31 Oct 2018, 14:33

                    @mrjj said in Qt Programming Language:

                    Hi
                    Im wondering about the file extension.
                    Its .cs which would indicate a c sharp program
                    and not a c++ one ?
                    Maybe a wrong template was used to create it ?

                    @mrjj is right; you have created a C# project instead of a C++ project. When you create a project, select "Visual C++".

                    I can't remember what Visual Studio 2015 is like, but Visual Studio 2017 lets me choose Visual C++ > Windows Desktop > Windows Console Application.

                    A Offline
                    A Offline
                    Annabelle
                    wrote on 31 Oct 2018, 17:36 last edited by
                    #217

                    @JKSH said in Qt Programming Language:

                    @mrjj said in Qt Programming Language:

                    Hi
                    Im wondering about the file extension.
                    Its .cs which would indicate a c sharp program
                    and not a c++ one ?
                    Maybe a wrong template was used to create it ?

                    @mrjj is right; you have created a C# project instead of a C++ project. When you create a project, select "Visual C++".

                    I can't remember what Visual Studio 2015 is like, but Visual Studio 2017 lets me choose Visual C++ > Windows Desktop > Windows Console Application.

                    Here's another screenshot. This time, I actually created a C++ project, but it still says there's an error. 0_1541007381736_537203d4-62e9-49e1-9e39-5c7e079ba05e-image.png

                    J 1 Reply Last reply 31 Oct 2018, 18:32
                    0
                    • A Annabelle
                      31 Oct 2018, 17:36

                      @JKSH said in Qt Programming Language:

                      @mrjj said in Qt Programming Language:

                      Hi
                      Im wondering about the file extension.
                      Its .cs which would indicate a c sharp program
                      and not a c++ one ?
                      Maybe a wrong template was used to create it ?

                      @mrjj is right; you have created a C# project instead of a C++ project. When you create a project, select "Visual C++".

                      I can't remember what Visual Studio 2015 is like, but Visual Studio 2017 lets me choose Visual C++ > Windows Desktop > Windows Console Application.

                      Here's another screenshot. This time, I actually created a C++ project, but it still says there's an error. 0_1541007381736_537203d4-62e9-49e1-9e39-5c7e079ba05e-image.png

                      J Offline
                      J Offline
                      JonB
                      wrote on 31 Oct 2018, 18:32 last edited by JonB 11 Jan 2018, 08:03
                      #218

                      @Annabelle
                      This is to do with the VS/MS compiler. Paste the following line:

                      #include "stdafx.h"
                      

                      into your file, as the first line, somewhere above your existing #include <iostream>.

                      Alternatively you can remove a compiler switch (/Yu) in your VS project, but I think the above is easiest.

                      A 1 Reply Last reply 31 Oct 2018, 23:33
                      1
                      • J JonB
                        31 Oct 2018, 18:32

                        @Annabelle
                        This is to do with the VS/MS compiler. Paste the following line:

                        #include "stdafx.h"
                        

                        into your file, as the first line, somewhere above your existing #include <iostream>.

                        Alternatively you can remove a compiler switch (/Yu) in your VS project, but I think the above is easiest.

                        A Offline
                        A Offline
                        Annabelle
                        wrote on 31 Oct 2018, 23:33 last edited by
                        #219

                        @JonB said in Qt Programming Language:

                        @Annabelle
                        This is to do with the VS/MS compiler. Paste the following line:

                        #include "stdafx.h"
                        

                        into your file, as the first line, somewhere above your existing #include <iostream>.

                        Alternatively you remover a compiler switch (/Yu) in your VS project, but I think the above is easiest.

                        What exactly is "stdafx"? Is it an initializing parameter?

                        J 1 Reply Last reply 31 Oct 2018, 23:53
                        0
                        • A Annabelle
                          31 Oct 2018, 23:33

                          @JonB said in Qt Programming Language:

                          @Annabelle
                          This is to do with the VS/MS compiler. Paste the following line:

                          #include "stdafx.h"
                          

                          into your file, as the first line, somewhere above your existing #include <iostream>.

                          Alternatively you remover a compiler switch (/Yu) in your VS project, but I think the above is easiest.

                          What exactly is "stdafx"? Is it an initializing parameter?

                          J Offline
                          J Offline
                          JKSH
                          Moderators
                          wrote on 31 Oct 2018, 23:53 last edited by
                          #220

                          @Annabelle said in Qt Programming Language:

                          What exactly is "stdafx"? Is it an initializing parameter?

                          You can find an answer by searching on Google or another search engine. Programmers must use search engines often, so make it a habit.

                          Here is an answer: https://stackoverflow.com/questions/2976035/purpose-of-stdafx-h

                          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                          1 Reply Last reply
                          1
                          • A Offline
                            A Offline
                            Annabelle
                            wrote on 3 Nov 2018, 06:05 last edited by
                            #221

                            I don't know what I did wrong this time, but here's another screenshot of an error.
                            0_1541225135389_7d1ba768-18a7-4ec3-b4aa-26271bc951dc-image.png

                            J 1 Reply Last reply 3 Nov 2018, 09:18
                            0
                            • A Annabelle
                              3 Nov 2018, 06:05

                              I don't know what I did wrong this time, but here's another screenshot of an error.
                              0_1541225135389_7d1ba768-18a7-4ec3-b4aa-26271bc951dc-image.png

                              J Offline
                              J Offline
                              JonB
                              wrote on 3 Nov 2018, 09:18 last edited by JonB 11 Mar 2018, 09:19
                              #222

                              @Annabelle
                              When you did the paste, this time you have accidentally actually copied the actual line numbers 1 to 6 onto lines 1 to 6. This is in addition to the line numbers which VS shows to the left of every line you write, and your screenreader probably reads out to you. Which means that prior to your #include at line 7 the first 6 lines are unacceptable. You need to delete, or change to blank lines, your first 6 lines.

                              When you try to compile code, the very first error is highly significant. Once the compiler hits something erroneous, very often it does not do a great a job at "recovering" from the error such that it gives sensible errors (or not) for whatever follows. So you can end up with loads of "spurious" errors after the first one. Concentrate each time on fixing whatever the very first error reported is, then try compiling again and see where it gets you.

                              Now, there is an important thing here in VS which I do not know whether you are aware of/your screenreader tells you about. When we look at the lines you have shown us in the screenshot above, we see the lines the compiler does not like having a "squiggly red underline" shown. For us we can immediately see those and know something is wrong. Does your screenreader tell you about these? In your current code, the very first line (numbered 1) has the actual text of the number 1 on it. Since that is wrong, VS squiggle-red-underlines that 1. It would be very helpful to you if your screenreader can make you aware of such lines, but perhaps it cannot? Also, I believe that if I hovered my mouse over a red-squiggle-underline VS would put up a "tooltip" giving me the error message for what is wrong: again, are you able to be informed about that?

                              A 1 Reply Last reply 3 Nov 2018, 14:43
                              2
                              • J JonB
                                3 Nov 2018, 09:18

                                @Annabelle
                                When you did the paste, this time you have accidentally actually copied the actual line numbers 1 to 6 onto lines 1 to 6. This is in addition to the line numbers which VS shows to the left of every line you write, and your screenreader probably reads out to you. Which means that prior to your #include at line 7 the first 6 lines are unacceptable. You need to delete, or change to blank lines, your first 6 lines.

                                When you try to compile code, the very first error is highly significant. Once the compiler hits something erroneous, very often it does not do a great a job at "recovering" from the error such that it gives sensible errors (or not) for whatever follows. So you can end up with loads of "spurious" errors after the first one. Concentrate each time on fixing whatever the very first error reported is, then try compiling again and see where it gets you.

                                Now, there is an important thing here in VS which I do not know whether you are aware of/your screenreader tells you about. When we look at the lines you have shown us in the screenshot above, we see the lines the compiler does not like having a "squiggly red underline" shown. For us we can immediately see those and know something is wrong. Does your screenreader tell you about these? In your current code, the very first line (numbered 1) has the actual text of the number 1 on it. Since that is wrong, VS squiggle-red-underlines that 1. It would be very helpful to you if your screenreader can make you aware of such lines, but perhaps it cannot? Also, I believe that if I hovered my mouse over a red-squiggle-underline VS would put up a "tooltip" giving me the error message for what is wrong: again, are you able to be informed about that?

                                A Offline
                                A Offline
                                Annabelle
                                wrote on 3 Nov 2018, 14:43 last edited by
                                #223

                                @JonB said in Qt Programming Language:

                                @Annabelle
                                When you did the paste, this time you have accidentally actually copied the actual line numbers 1 to 6 onto lines 1 to 6. This is in addition to the line numbers which VS shows to the left of every line you write, and your screenreader probably reads out to you. Which means that prior to your #include at line 7 the first 6 lines are unacceptable. You need to delete, or change to blank lines, your first 6 lines.

                                When you try to compile code, the very first error is highly significant. Once the compiler hits something erroneous, very often it does not do a great a job at "recovering" from the error such that it gives sensible errors (or not) for whatever follows. So you can end up with loads of "spurious" errors after the first one. Concentrate each time on fixing whatever the very first error reported is, then try compiling again and see where it gets you.

                                Now, there is an important thing here in VS which I do not know whether you are aware of/your screenreader tells you about. When we look at the lines you have shown us in the screenshot above, we see the lines the compiler does not like having a "squiggly red underline" shown. For us we can immediately see those and know something is wrong. Does your screenreader tell you about these? In your current code, the very first line (numbered 1) has the actual text of the number 1 on it. Since that is wrong, VS squiggle-red-underlines that 1. It would be very helpful to you if your screenreader can make you aware of such lines, but perhaps it cannot? Also, I believe that if I hovered my mouse over a red-squiggle-underline VS would put up a "tooltip" giving me the error message for what is wrong: again, are you able to be informed about that?

                                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? I'm confused!

                                J 1 Reply Last reply 3 Nov 2018, 23:21
                                0
                                • A Offline
                                  A Offline
                                  Annabelle
                                  wrote on 3 Nov 2018, 15:48 last edited by
                                  #224

                                  Here's a screenshot of yet another error. I'm not sure what I did wrong. I deleted the lines with pasted numbers, but even Visual Studio didn't like something I did then.
                                  0_1541260099015_7152e5c5-4f99-4b63-ab56-23a1c4260150-image.png

                                  1 Reply Last reply
                                  0
                                  • A Annabelle
                                    3 Nov 2018, 14:43

                                    @JonB said in Qt Programming Language:

                                    @Annabelle
                                    When you did the paste, this time you have accidentally actually copied the actual line numbers 1 to 6 onto lines 1 to 6. This is in addition to the line numbers which VS shows to the left of every line you write, and your screenreader probably reads out to you. Which means that prior to your #include at line 7 the first 6 lines are unacceptable. You need to delete, or change to blank lines, your first 6 lines.

                                    When you try to compile code, the very first error is highly significant. Once the compiler hits something erroneous, very often it does not do a great a job at "recovering" from the error such that it gives sensible errors (or not) for whatever follows. So you can end up with loads of "spurious" errors after the first one. Concentrate each time on fixing whatever the very first error reported is, then try compiling again and see where it gets you.

                                    Now, there is an important thing here in VS which I do not know whether you are aware of/your screenreader tells you about. When we look at the lines you have shown us in the screenshot above, we see the lines the compiler does not like having a "squiggly red underline" shown. For us we can immediately see those and know something is wrong. Does your screenreader tell you about these? In your current code, the very first line (numbered 1) has the actual text of the number 1 on it. Since that is wrong, VS squiggle-red-underlines that 1. It would be very helpful to you if your screenreader can make you aware of such lines, but perhaps it cannot? Also, I believe that if I hovered my mouse over a red-squiggle-underline VS would put up a "tooltip" giving me the error message for what is wrong: again, are you able to be informed about that?

                                    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? I'm confused!

                                    J Offline
                                    J Offline
                                    JKSH
                                    Moderators
                                    wrote on 3 Nov 2018, 23:21 last edited by JKSH 11 Mar 2018, 23:21
                                    #225

                                    @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.

                                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                    A 1 Reply Last reply 4 Nov 2018, 01:43
                                    0
                                    • J JKSH
                                      3 Nov 2018, 23:21

                                      @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.

                                      A Offline
                                      A Offline
                                      Annabelle
                                      wrote on 4 Nov 2018, 01:43 last edited by
                                      #226

                                      @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?

                                      1 Reply Last reply
                                      0
                                      • A Offline
                                        A Offline
                                        Annabelle
                                        wrote on 5 Nov 2018, 01:02 last edited by
                                        #227

                                        How's this?

                                        0_1541379728064_097a0365-c849-4c61-a942-b48351b6e910-image.png

                                        J 1 Reply Last reply 6 Nov 2018, 08:20
                                        0
                                        • A Annabelle
                                          5 Nov 2018, 01:02

                                          How's this?

                                          0_1541379728064_097a0365-c849-4c61-a942-b48351b6e910-image.png

                                          J Offline
                                          J Offline
                                          JonB
                                          wrote on 6 Nov 2018, 08:20 last edited by JonB 11 Jun 2018, 08:20
                                          #228

                                          @Annabelle
                                          This looks fault-free, and seems to have run without error! I don't know where the "Hello world" output went though? On that Output tab you have the Show output from combobox set to Debug, you may have to set that to something else to see/hear the program output?

                                          A 1 Reply Last reply 6 Nov 2018, 08:48
                                          2

                                          218/331

                                          31 Oct 2018, 18:32

                                          • Login

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