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. You would use <this> when you want to <do that>

You would use <this> when you want to <do that>

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 6 Posters 1.4k Views 3 Watching
  • 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.
  • B Offline
    B Offline
    BKBK
    wrote on last edited by
    #1

    The assistant is pretty darn good. There is one additional item I would like to see at the to of each major section. Put this partial sentence near the top and fill in the two sections:
    You would use <this> when you want to <do that>.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @BKBK said in You would use <this> when you want to <do that>:

      You would use <this> when you want to <do that>.

      You should use a better explanation what you really want when you want to get a useful answer from us

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Can you be more precise about <this> and <that> ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        O 1 Reply Last reply
        1
        • SGaistS SGaist

          Hi,

          Can you be more precise about <this> and <that> ?

          O Offline
          O Offline
          ofmrew
          wrote on last edited by
          #4

          @SGaist I believe that what BKBK is saying is that documentation always tells you how something works, but never how to accomplish what you want done. This has historically been a problem with all documentation, not just programming related documentation. The IBM documentation is a prime example.

          You want to know how you should do something to get the results you want. I would assume that by <this> BKBK means "what I want done" and <do that> is the approach. For that, we have books and articles. Just my two cents.

          B 1 Reply Last reply
          0
          • O ofmrew

            @SGaist I believe that what BKBK is saying is that documentation always tells you how something works, but never how to accomplish what you want done. This has historically been a problem with all documentation, not just programming related documentation. The IBM documentation is a prime example.

            You want to know how you should do something to get the results you want. I would assume that by <this> BKBK means "what I want done" and <do that> is the approach. For that, we have books and articles. Just my two cents.

            B Offline
            B Offline
            BKBK
            wrote on last edited by BKBK
            #5

            @ofmrew Thanks for the elaboration. Said in additional words: Write something short that says why this particular class or method was created. Something like:

            We created the QDialog because we needed something to <do this>. It is fundamentally different from the QWidget in that it <compare to QWidget>.

            There might even be a table of the top level items with two (or maybe more) columns titled:


            | If you want to do this | Then use one of these | Because: |


            | some activity here | Name something | its cool |

            Side Note: The forum auto-edit changes things around so. I edited a table looking thing just above, but upon submit it is changed quite a bit.

            That table could start short with just the top level items and expand is as desired. It might be somelthing that users could add to and save the developers much time. I would be more than glad to help here, but I am a complete novice.
            However, I would be more than happy to read and offer a novice's perspective.

            An example is Microsoft Windows Forms. I took that at face value and posted on MSDN about somelthing that I saw as a form, then was fussed at because Windows Forms is a specific product line. Ok, so I did some searches and never did find something that told me: Use Windows Forms if you want to <do this>. In my not so humble opinion, that should be one of the first statements written about any product. Indeed, before starting any software project it would be a good idea to write: "This is needed because <elaboration>."
            Write it short, write it long and detailed, write it in between, just write it.

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              What's wrong with http://doc.qt.io/qt-5/qdialog.html#details ?

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              B 1 Reply Last reply
              1
              • Christian EhrlicherC Christian Ehrlicher

                What's wrong with http://doc.qt.io/qt-5/qdialog.html#details ?

                B Offline
                B Offline
                BKBK
                wrote on last edited by BKBK
                #7

                @Christian-Ehrlicher followed that link, looks good.
                I have Qt Assistance on my display and it is better than most. However the page you suggested provides additional information that I did not find within Qt Assistant.

                And I do admit that one of my biggest difficulties is in not seeing what is right in front of me. That is rather aggravating and often embarrassing.

                Edit: After looking at that page a bit it is quite good. I am still at the stage where I just want to prove to myself that this thing will fundamentally work before I spent a lot of time looking into details. I probably spoke too quickly.
                Thanks for your time and patience.

                O aha_1980A 2 Replies Last reply
                0
                • B BKBK

                  @Christian-Ehrlicher followed that link, looks good.
                  I have Qt Assistance on my display and it is better than most. However the page you suggested provides additional information that I did not find within Qt Assistant.

                  And I do admit that one of my biggest difficulties is in not seeing what is right in front of me. That is rather aggravating and often embarrassing.

                  Edit: After looking at that page a bit it is quite good. I am still at the stage where I just want to prove to myself that this thing will fundamentally work before I spent a lot of time looking into details. I probably spoke too quickly.
                  Thanks for your time and patience.

                  O Offline
                  O Offline
                  ofmrew
                  wrote on last edited by
                  #8

                  @BKBK From my experience, over fifty years in the field, programmers hate to do documentation. Big companies usually have professional technical writer to write the documentation. They are not application programmers. Over the years I have gained enough experience to read more into the documentation than is stated.

                  1 Reply Last reply
                  0
                  • B BKBK

                    @Christian-Ehrlicher followed that link, looks good.
                    I have Qt Assistance on my display and it is better than most. However the page you suggested provides additional information that I did not find within Qt Assistant.

                    And I do admit that one of my biggest difficulties is in not seeing what is right in front of me. That is rather aggravating and often embarrassing.

                    Edit: After looking at that page a bit it is quite good. I am still at the stage where I just want to prove to myself that this thing will fundamentally work before I spent a lot of time looking into details. I probably spoke too quickly.
                    Thanks for your time and patience.

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @BKBK said in You would use <this> when you want to <do that>:

                    However the page you suggested provides additional information that I did not find within Qt Assistant.

                    I doubt that, as the page is generated from the same sources. At least the assistant integrated in QtCreator shows the same infos.

                    Regards

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    1
                    • Christian EhrlicherC Offline
                      Christian EhrlicherC Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      The assistant does ship exactly the same content as you can find on the website.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      O 1 Reply Last reply
                      1
                      • Christian EhrlicherC Christian Ehrlicher

                        The assistant does ship exactly the same content as you can find on the website.

                        O Offline
                        O Offline
                        ofmrew
                        wrote on last edited by
                        #11

                        @Christian-Ehrlicher One more point and I will shut up. I believe that I might have misconstrued BKBK's underlying question: it was help in design for which he might have been asking. If that is the case I would point him to the literature on object-oriented design and GUI design. Design Patterns by Gamma, et. al. would be a good starting point.

                        kshegunovK 1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          That's also why there are examples and demos that should be looked at.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • O ofmrew

                            @Christian-Ehrlicher One more point and I will shut up. I believe that I might have misconstrued BKBK's underlying question: it was help in design for which he might have been asking. If that is the case I would point him to the literature on object-oriented design and GUI design. Design Patterns by Gamma, et. al. would be a good starting point.

                            kshegunovK Offline
                            kshegunovK Offline
                            kshegunov
                            Moderators
                            wrote on last edited by
                            #13

                            @ofmrew said in You would use <this> when you want to <do that>:

                            Design Patterns by Gamma, et. al.

                            This book is pure evil.

                            Read and abide by the Qt Code of Conduct

                            1 Reply Last reply
                            0

                            • Login

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