Qt Programming Language


  • Moderators

    @Annabelle said in Qt Programming Language:

    Try to get your updated code to affect what's shown in the Command Prompt without making a separate project. If you are able to do this, you will save yourself lots of time in future exercises or projects.

    After you edit the code in your original project, remember to save your changes, then rebuild and re-run your program.

    That's what I did originally, and unfortunately the resulting text in the command prompt didn't change, it still said "Hello World!".

    To clarify: Did you close the original Command Prompt window before editing, saving, rebuilding, and rerunning your program?



  • @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    Try to get your updated code to affect what's shown in the Command Prompt without making a separate project. If you are able to do this, you will save yourself lots of time in future exercises or projects.

    After you edit the code in your original project, remember to save your changes, then rebuild and re-run your program.

    That's what I did originally, and unfortunately the resulting text in the command prompt didn't change, it still said "Hello World!".

    To clarify: Did you close the original Command Prompt window before editing, saving, rebuilding, and rerunning your program?

    Yes.


  • Moderators

    @Annabelle said in Qt Programming Language:

    @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    Try to get your updated code to affect what's shown in the Command Prompt without making a separate project. If you are able to do this, you will save yourself lots of time in future exercises or projects.

    After you edit the code in your original project, remember to save your changes, then rebuild and re-run your program.

    That's what I did originally, and unfortunately the resulting text in the command prompt didn't change, it still said "Hello World!".

    To clarify: Did you close the original Command Prompt window before editing, saving, rebuilding, and rerunning your program?

    Yes.

    Hmm, that is strange. However, without access to your PC, it's hard to tell what's wrong.

    In any case, don't let yourself be hindered by little issues like this. Be proactive, and keep working your way through the tutorials.



  • @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    Try to get your updated code to affect what's shown in the Command Prompt without making a separate project. If you are able to do this, you will save yourself lots of time in future exercises or projects.

    After you edit the code in your original project, remember to save your changes, then rebuild and re-run your program.

    That's what I did originally, and unfortunately the resulting text in the command prompt didn't change, it still said "Hello World!".

    To clarify: Did you close the original Command Prompt window before editing, saving, rebuilding, and rerunning your program?

    Yes.

    Hmm, that is strange. However, without access to your PC, it's hard to tell what's wrong.

    In any case, don't let yourself be hindered by little issues like this. Be proactive, and keep working your way through the tutorials.

    I have Teamviewer, if you'd like to access it that way. Would you want my phone number for that method?



  • @Annabelle said in Qt Programming Language:

    I ended up having to make a separate project, as when I put "Hi Annabelle!" and "Bye now." into the original project, it still displayed "Hello World!" in the resulting Command Prompt.

    Annabelle, if you think about this logically that cannot be the right approach. You don't/must not have to create a new project in order to alter something like the output from a piece of code you have already written.

    Why don't you go back now to the original project and have a stab at making the edits again? If that still produces the wrong output as you said, paste the code and we'll have a look at it.



  • @JonB said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    I ended up having to make a separate project, as when I put "Hi Annabelle!" and "Bye now." into the original project, it still displayed "Hello World!" in the resulting Command Prompt.

    Annabelle, if you think about this logically that cannot be the right approach. You don't/must not have to create a new project in order to alter something like the output from a piece of code you have already written.

    Why don't you go back now to the original project and have a stab at making the edits again? If that still produces the wrong output as you said, paste the code and we'll have a look at it.

    @JonB said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    I ended up having to make a separate project, as when I put "Hi Annabelle!" and "Bye now." into the original project, it still displayed "Hello World!" in the resulting Command Prompt.

    Annabelle, if you think about this logically that cannot be the right approach. You don't/must not have to create a new project in order to alter something like the output from a piece of code you have already written.

    Why don't you go back now to the original project and have a stab at making the edits again? If that still produces the wrong output as you said, paste the code and we'll have a look at it.

    Now my copy of Visual Studio has this message upon opening. "Your evaluation period has ended. Please sign in to your account to unlock the product." This seems rather strange, since I believe that Visual Studio Community is free. What do I do next?


  • Moderators

    @Annabelle said in Qt Programming Language:

    Would you want my phone number for that method?

    For your own security, please don't post your phone number or home address publicly.

    @Annabelle said in Qt Programming Language:

    Now my copy of Visual Studio has this message upon opening. "Your evaluation period has ended. Please sign in to your account to unlock the product." This seems rather strange, since I believe that Visual Studio Community is free. What do I do next?

    Have a closer look at the message. It says "Please sign in to your account" (which tells you what to do next); it doesn't ask for payment.



  • @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    Would you want my phone number for that method?

    For your own security, please don't post your phone number or home address publicly.

    @Annabelle said in Qt Programming Language:

    Now my copy of Visual Studio has this message upon opening. "Your evaluation period has ended. Please sign in to your account to unlock the product." This seems rather strange, since I believe that Visual Studio Community is free. What do I do next?

    Have a closer look at the message. It says "Please sign in to your account" (which tells you what to do next); it doesn't ask for payment.

    I've tried signing in, but now my account has been temporarily suspended, even though I'm the only one who has signed into this account. When I said that I forgot my password, that somehow led to my account being suspended. What do I do now?


  • Moderators

    @Annabelle said in Qt Programming Language:

    When I said that I forgot my password, that somehow led to my account being suspended.

    https://support.microsoft.com/en-us/help/13956/microsoft-account-temporarily-suspended



  • @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    When I said that I forgot my password, that somehow led to my account being suspended.

    https://support.microsoft.com/en-us/help/13956/microsoft-account-temporarily-suspended

    On that link, it says in Step 2: Enter a phone number to request a security code be sent to you via text message. This can be any phone that can receive text messages.

    Trouble is, I don't have a phone that does texting, just a regular landline phone.


  • Moderators

    @Annabelle said in Qt Programming Language:

    Trouble is, I don't have a phone that does texting, just a regular landline phone.

    Microsoft says, "The phone number you use to receive this text message doesn't need to be associated with your account. It doesn't even need to be your own phone number. If your phone doesn't receive text messages, ask a friend or family member if you can use theirs."

    Do you have any family/friends you can trust with this?



  • @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    Trouble is, I don't have a phone that does texting, just a regular landline phone.

    Microsoft says, "The phone number you use to receive this text message doesn't need to be associated with your account. It doesn't even need to be your own phone number. If your phone doesn't receive text messages, ask a friend or family member if you can use theirs."

    Do you have any family/friends you can trust with this?

    No I don't, because all my family and friends have just regular landlines and cell phones without texting options.


  • Moderators

    @Annabelle said in Qt Programming Language:

    @JKSH said in Qt Programming Language:

    Do you have any family/friends you can trust with this?

    No I don't, because all my family and friends have just regular landlines and cell phones without texting options.

    Cell phones without the ability to receive texts? I didn't realize these still existed!

    If the common route is not available to you, then it's time to get creative and find ways to overcome your obstacles. Can you think of any ideas?



  • @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    @JKSH said in Qt Programming Language:

    Do you have any family/friends you can trust with this?

    No I don't, because all my family and friends have just regular landlines and cell phones without texting options.

    Cell phones without the ability to receive texts? I didn't realize these still existed!

    If the common route is not available to you, then it's time to get creative and find ways to overcome your obstacles. Can you think of any ideas?

    I wish I could, but I'm not sure which way to turn. Interestingly enough, Microsoft thinks that someone might have used my Microsoft Account to send lots of junk mail. Trouble is, I'm the only one who knows the login details as far as I know. It was just a case of me somehow forgetting my password, and as a result, they didn't believe it was me that tried to sign in to my account. What kind of monkeyshine is that, I wonder? On top of that, they say your account could be temporarily suspended due to prolonged inactivity. To me, that makes just as much sense as a snake with no slither!



  • @Annabelle
    Given that you seem to have come to an impasse using your Visual Studio, which need unlocking. If all else fails, what about:

    1. Uninstall the VS completely from your PC, as best you can.
    2. Get yourself some brand new, free email address from Microsoft, Gmail or whoever.
    3. Use that to create whatever account MS wants for downloading VS, restarting from scratch.

    Since the VS edition is free, I can't imagine MS cares what email address you use.

    The only thing I cannot promise is: after you uninstall the current VS "evaluation" it is possible it will leave something around (in the registry) which it will notice and refuse to install a new evaluation. Hope not, but cannot guarantee.

    Up to you, but it's one to proceed if you're not getting anywhere from where you are now....


  • Qt Champions 2017

    That seems like a rather complicated way to get a compiler. Isn't it much simpler just to install mingw along with Qt through the Qt maintenance tool and just roll with that ...?



  • @kshegunov
    Would @Annabelle then be using Qt Creator (with MinGW) instead of VS? The thing we have to bear in mind is that changing IDE, or even compiler, could be a big thing for her?


  • Qt Champions 2017

    I imagine so, yes. From my point of view Creator is both better and faster, but then again your mileage may vary.
    In any case, I myself have grown rather tired of MS's products and more so their licenses, paywalls and whatnot, and currently I build with g++ for linux as well as windows (mingw), whenever I can get away with it, which is in 99% of cases.



  • @kshegunov
    Indeed. But @Annabelle's interaction with an IDE will be very different from ours. Speed etc. may not be her issue. Rather, I would imagine how the interface works for blind access will be far more important. And it may be that VS's accessibility support is superior to Qt Creator's, or at least different.



  • @JonB said in Qt Programming Language:

    @Annabelle
    Given that you seem to have come to an impasse using your Visual Studio, which need unlocking. If all else fails, what about:

    1. Uninstall the VS completely from your PC, as best you can.
    2. Get yourself some brand new, free email address from Microsoft, Gmail or whoever.
    3. Use that to create whatever account MS wants for downloading VS, restarting from scratch.

    Since the VS edition is free, I can't imagine MS cares what email address you use.

    The only thing I cannot promise is: after you uninstall the current VS "evaluation" it is possible it will leave something around (in the registry) which it will notice and refuse to install a new evaluation. Hope not, but cannot guarantee.

    Up to you, but it's one to proceed if you're not getting anywhere from where you are now....

    I uninstalled the program completely, making sure there were no traces left in the registry. Since Visual Studio doesn't seem to be good for me, what do I do now? Are there any IDE's out there that are fully accessible to screenreaders like JAWS, which can compile programs for all operating systems, won't install any bloatware, and most important of all, won't take forever to install?



  • I haven't heard anything for 2 months on this post. Has anybody seen and read my most recent post, regarding obtaining something other than Visual Studio? Something that won't expire after 30 days, won't take forever to install or uninstall, and most important of all, will be accessible to screenreaders like JAWS?


  • Moderators

    Hi @Annabelle, if you rule out Visual Studio, then your next best bet is to use the Qt Creator IDE with the MinGW compiler. Here are some simple instructions to install these: https://wiki.qt.io/Quick_Start:_Installing_Qt_on_Windows

    I don't have JAWS so I cannot tell how well it integrates with Qt Creator. Install it to find out.

    I forgot to reply to your last post, and for that I'm sorry. At the same time, I encourage you to take the initiative to research and experiment, even if nobody instructs you to.



  • @JKSH said in Qt Programming Language:

    Hi @Annabelle, if you rule out Visual Studio, then your next best bet is to use the Qt Creator IDE with the MinGW compiler. Here are some simple instructions to install these: https://wiki.qt.io/Quick_Start:_Installing_Qt_on_Windows

    I don't have JAWS so I cannot tell how well it integrates with Qt Creator. Install it to find out.

    I forgot to reply to your last post, and for that I'm sorry. At the same time, I encourage you to take the initiative to research and experiment, even if nobody instructs you to.

    I have Qt Creator on my machine, and JAWS only seems to recognize a few components, for example, the opening screen with the Project Treeview. I wonder what I might be doing wrong. Also, Qt Creator doesn't have the kind of menu bar that you can access with the Alt Key or the Applications key. At least not that I know of. It seems you would have to have sighted help to click on whatever parameter you want, like a button or a checkbox, to insert it into a project. What's up with that, I wonder? I wish Qt Creator would have a menu you could access with a keyboard shortcut, that lists all the possible parameters you can insert into your project.



  • @Annabelle
    I am sure you are more knowledgeable about screen readers and braille displays than I am, however if you are using Windows 10, do the Windows Narrator and the braille drivers not work for you?
    Also you can set up your own short cuts for QtCreator and on windows the menu items do have alt key access.
    Since Qt has classes for adding Accessibility to applications I am assuming that QtCreator follows best practices in this matter. You can always ask the developers about that directly by asking them on the mailing list here



  • @kenchan said in Qt Programming Language:

    @Annabelle
    I am sure you are more knowledgeable about screen readers and brail displays than I am, however if you are using Windows 10, do the Windows Narrator and the braille drivers not work for you?
    Also you can set up your own short cuts for QtCreator and on windows the menu items do have alt key access.
    Since Qt has classes for adding Accessibility to applications I am assuming that QtCreator follows best practices in this matter. You can always ask the developers about that directly by asking them on the mailing list here

    Windows 10? I'm actually using Windows 7. Specifically Windows 7 Professional 64 Bit with JAWS 15.



  • @Annabelle
    Ah, well that is a shame. I have not used Windows 7 for years so I don't know if it had Narrator and braille drivers.
    The QtCreator menu shortcuts should be the same though.
    So the issue with your JAWS thingy is that it can't read the QtCreator menu items and controls or it can't work with your braille device or both?



  • @kenchan said in Qt Programming Language:

    @Annabelle
    Ah, well that is a shame. I have not used Windows 7 for years so I don't know if it had Narrator and braille drivers.
    The QtCreator menu shortcuts should be the same though.
    So the issue with your JAWS thingy is that it can't read the QtCreator menu items and controls or it can't work with your braille device or both?

    I don't have my Braille device installed on this machine. As far as the menu items, if they're image-based, then JAWS can't read them. It only reads icons that are text-based. Same goes for Narrator, as well as NVDA (Non Visual Desktop Access), yet another screenreader.


  • Moderators

    @Annabelle said in Qt Programming Language:

    I have Qt Creator on my machine, and JAWS only seems to recognize a few components, for example, the opening screen with the Project Treeview. I wonder what I might be doing wrong. Also, Qt Creator doesn't have the kind of menu bar that you can access with the Alt Key or the Applications key. At least not that I know of.

    I turned on Windows 10 Narrator and opened Qt Creator. When I pressed the Alt key, the menu was activated and Windows Narrator said, "File. Menu Item. Menu Keyboard and F". After that, I pressed the Tab key. The next menu item was selected and Windows Narrator said, "Edit. Menu Item. Menu Keyboard and E".

    Could you try again? Press Alt then Tab. After that, press the Escape key to leave the menu, then try pressing Alt then F.

    It seems you would have to have sighted help to click on whatever parameter you want, like a button or a checkbox, to insert it into a project. What's up with that, I wonder? I wish Qt Creator would have a menu you could access with a keyboard shortcut, that lists all the possible parameters you can insert into your project.

    It sounds like you had opened the visual editor for creating graphical user interfaces (GUI). This editor is optional; you can create a GUI using text code alone.



  • @Annabelle
    I see that the NVDA screen reader cannot read the icon menus that start from the top on the left hand side of the QtCreator main window. I guess this is the problem you have seen with QtCreator? That left most panel is called the Mode Selector and you can close it if is too noisy for your screen reader.
    Maybe you could ask the QtCreator developers to make that panel more accessible to screen readers?
    On the whole though it looks like most of the menus should work with a screen reader (I tried it with NVDA but did not test every menu though).



  • @kenchan said in Qt Programming Language:

    @Annabelle
    I see that the NVDA screen reader cannot read the icon menus that start from the top on the left hand side of the QtCreator main window. I guess this is the problem you have seen with QtCreator? That left most panel is called the Mode Selector and you can close it if is too noisy for your screen reader.
    Maybe you could ask the QtCreator developers to make that panel more accessible to screen readers?
    On the whole though it looks like most of the menus should work with a screen reader (I tried it with NVDA but did not test every menu though).

    Mode Selector? I'm confused! Also, how would I put things like checkboxes and combo boxes into a project with Qt Creator? Is there a screenreader-friendly menu that lets you select the parameters you'd like to incorporate into a new project?



  • @Annabelle
    Well, I think you will have that problem with any of the IDE tools available as they all basically do things in the same way. Dragging and dropping GUI elements onto the screen is probably quite a difficult thing to with the assistance of a screen reader. You can however create GUIs without using the graphical interface designer by just programming them directly with code yourself. There is much more coding to be done but many people do it that way.



  • @kenchan said in Qt Programming Language:

    @Annabelle
    Well, I think you will have that problem with any of the IDE tools available as they all basically do things in the same way. Dragging and dropping GUI elements onto the screen is probably quite a difficult thing to with the assistance of a screen reader. You can however create GUIs without using the graphical interface designer by just programming them directly with code yourself. There is much more coding to be done but many people do it that way.

    When I finish the code, I'm wondering what compiler I could use that would be completely accessible for me. Coding in C++ is what I'm learning through www.learncpp.com, and the IDE part is where I'm stuck in a rut.


  • Moderators

    @Annabelle said in Qt Programming Language:

    Coding in C++ is what I'm learning through www.learncpp.com, and the IDE part is where I'm stuck in a rut.

    Read my post from yesterday. Windows Narrator reads out the Alt menus for me. Does JAWS say anything when you press and release Alt, then press and release Tab in Qt Creator?

    Also, what version of Qt Creator did you install? (You can check by pressing and releasing keys in this order: Escape, Alt, H, Q)



  • @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    Coding in C++ is what I'm learning through www.learncpp.com, and the IDE part is where I'm stuck in a rut.

    Read my post from yesterday. Windows Narrator reads out the Alt menus for me. Does JAWS say anything when you press and release Alt, then press and release Tab in Qt Creator?

    Also, what version of Qt Creator did you install? (You can check by pressing and releasing keys in this order: Escape, Alt, H, Q)

    Qt Creator 4.7.0 based on Qt 5.11.1 MSVC 2015. As for Windows Narrator, it announces most stuff as "Unknown" or "Unknown Key". What's up with that, I wonder?


  • Moderators

    @Annabelle said in Qt Programming Language:

    Qt Creator 4.7.0 based on Qt 5.11.1 MSVC 2015.

    OK, that's a good recent version.

    As for Windows Narrator, it announces most stuff as "Unknown" or "Unknown Key". What's up with that, I wonder?

    Do you mean Windows Narrator announces them as "Unknown", while JAWS doesn't announce them at all?



  • @JKSH said in Qt Programming Language:

    @Annabelle said in Qt Programming Language:

    Qt Creator 4.7.0 based on Qt 5.11.1 MSVC 2015.

    OK, that's a good recent version.

    As for Windows Narrator, it announces most stuff as "Unknown" or "Unknown Key". What's up with that, I wonder?

    Do you mean Windows Narrator announces them as "Unknown", while JAWS doesn't announce them at all?

    Yes, that's exactly what I mean.


  • Moderators

    @Annabelle said in Qt Programming Language:

    As for Windows Narrator, it announces most stuff as "Unknown" or "Unknown Key". What's up with that, I wonder?

    Do you mean Windows Narrator announces them as "Unknown", while JAWS doesn't announce them at all?

    Yes, that's exactly what I mean.

    OK, I managed to load an old machine which runs Windows 7 Enterprise SP1, and I installed Qt Creator 4.7.0 on it. I launched the Microsoft Narrator that came bundled with Windows 7. I used its default settings: "Echo User's Keystrokes" and "Announce System Messages".

    Here is what I did and what I heard:

    1. When I launched Qt Creator, Microsoft Narrator said, "Window opened. Quartz Creator."
    2. When I pressed Alt, Microsoft Narrator said, "Alt. File. Menu Item. Menu key Alt plus 'F'. Menu bar with 8 items."

    So Qt Creator 4.7.0 should be accessible to screenreaders on Windows 7. I can't understand why your copy of Microsoft Narrator only reads "Unknown".

    In your community, are there any programmers or folks who are knowledgeable with computers? It could be worth getting their assistance. I'm afraid that our ability to help you through an online forum is quite limited.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.