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. How to build real template class?
QtWS25 Last Chance

How to build real template class?

Scheduled Pinned Locked Moved Unsolved General and Desktop
26 Posts 11 Posters 2.2k 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on 6 May 2024, 14:31 last edited by
    #8

    "Template" in this context is simply an English word in the same way as you may have a "Template for a presentation", i.e. something generic to help you get started, from which you can then customize what you want.

    1 Reply Last reply
    7
    • A Offline
      A Offline
      Anonymous_Banned275
      wrote on 6 May 2024, 15:15 last edited by
      #9

      I disagree , especially when it is " for beginners" .
      Cheers

      A 1 Reply Last reply 7 May 2024, 07:46
      0
      • A Anonymous_Banned275
        6 May 2024, 12:45

        I do not agree with your opinion : What are you trying to achieve?
        My missed point is - Qt documentation call the result of their process of building a class a " template". It is NOT template TYPE by definition, it is Qt miss use of a term.
        I have no illusion that pointing that out will "achieve " anything. Qt is pushing its own terminology and continue to do so irregardless of me , a user , opinion. They are the experts , in their opinions / view.
        My only "achievement' could be to make others users of Qt aware. That is about all I could hope for.

        A Offline
        A Offline
        Axel Spoerl
        Moderators
        wrote on 6 May 2024, 19:11 last edited by
        #10

        It is NOT template TYPE by definition, it is Qt miss use of a term.

        That's simply wrong, @AnneRanch.
        The misunderstanding is entirely on your side.

        As @Asperamanca indicated, the term "template" is standard English vocabulary. If you reserve it exclusively for what is a template in C++, you limit your own vocabulary.

        The documentation page you referred, is truly outdated, but it doesn't contain anything wrong. It uses word "template" in two different contexts:

        • TEMPLATE directive of qmake
        • creating a class definition, following a template (as @Asperamanca already explained)

        The page does not contain any mention of the term "template" in C++ code. That makes the context pretty obvious for any C++ programmer, beginners included.

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        4
        • A Anonymous_Banned275
          6 May 2024, 15:15

          I disagree , especially when it is " for beginners" .
          Cheers

          A Offline
          A Offline
          Asperamanca
          wrote on 7 May 2024, 07:46 last edited by
          #11

          @AnneRanch said in How to build real template class?:

          I disagree , especially when it is " for beginners" .
          Cheers

          I agree that the conflict of terms here is a bit unfortunate. Then again, I cannot come up with a more fitting term for "template" in this context. If you have a better idea, you can also write documentation suggestion to bugreports.qt.io

          P 1 Reply Last reply 7 May 2024, 09:30
          2
          • A Asperamanca
            7 May 2024, 07:46

            @AnneRanch said in How to build real template class?:

            I disagree , especially when it is " for beginners" .
            Cheers

            I agree that the conflict of terms here is a bit unfortunate. Then again, I cannot come up with a more fitting term for "template" in this context. If you have a better idea, you can also write documentation suggestion to bugreports.qt.io

            P Offline
            P Offline
            Pl45m4
            wrote on 7 May 2024, 09:30 last edited by
            #12

            @Asperamanca said in How to build real template class?:

            I cannot come up with a more fitting term for "template" in this context

            I can think of another term (don't know if better or not), but I'm not allowed to comment :)))
            The first part is a color, the second part of the word is what a certain I/O device does :)))


            If debugging is the process of removing software bugs, then programming must be the process of putting them in.

            ~E. W. Dijkstra

            R 1 Reply Last reply 7 May 2024, 12:15
            0
            • P Pl45m4
              7 May 2024, 09:30

              @Asperamanca said in How to build real template class?:

              I cannot come up with a more fitting term for "template" in this context

              I can think of another term (don't know if better or not), but I'm not allowed to comment :)))
              The first part is a color, the second part of the word is what a certain I/O device does :)))

              R Offline
              R Offline
              Redman
              wrote on 7 May 2024, 12:15 last edited by
              #13

              @Pl45m4 yellow fax

              P A 2 Replies Last reply 7 May 2024, 12:25
              1
              • R Redman
                7 May 2024, 12:15

                @Pl45m4 yellow fax

                P Offline
                P Offline
                Pl45m4
                wrote on 7 May 2024, 12:25 last edited by
                #14

                @Redman said in How to build real template class?:

                yellow fax

                Yep. That's it :))
                You're good :D


                If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                ~E. W. Dijkstra

                1 Reply Last reply
                0
                • R Redman
                  7 May 2024, 12:15

                  @Pl45m4 yellow fax

                  A Offline
                  A Offline
                  Axel Spoerl
                  Moderators
                  wrote on 7 May 2024, 12:26 last edited by
                  #15

                  @Redman
                  C'mon, ever seen a yellow fax?
                  He meant orange jam, obviously.

                  Software Engineer
                  The Qt Company, Oslo

                  P 1 Reply Last reply 7 May 2024, 13:03
                  1
                  • A Axel Spoerl
                    7 May 2024, 12:26

                    @Redman
                    C'mon, ever seen a yellow fax?
                    He meant orange jam, obviously.

                    P Offline
                    P Offline
                    Pl45m4
                    wrote on 7 May 2024, 13:03 last edited by
                    #16

                    @Axel-Spoerl said in How to build real template class?:

                    He meant orange jam, obviously.

                    Actually I was referring to commonly used term "reddisplay".
                    ... but I agreed to @Redman so he wouldn't feel bad :)))


                    If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                    ~E. W. Dijkstra

                    1 Reply Last reply
                    2
                    • J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 7 May 2024, 13:28 last edited by
                      #17

                      bluescreen :-)

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      P 1 Reply Last reply 7 May 2024, 14:14
                      3
                      • J jsulm
                        7 May 2024, 13:28

                        bluescreen :-)

                        P Offline
                        P Offline
                        Pl45m4
                        wrote on 7 May 2024, 14:14 last edited by
                        #18

                        @jsulm said in How to build real template class?:

                        bluescreen :-)

                        That's what you get when using yellow fax wrong :))


                        If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                        ~E. W. Dijkstra

                        1 Reply Last reply
                        1
                        • A Offline
                          A Offline
                          Axel Spoerl
                          Moderators
                          wrote on 7 May 2024, 19:41 last edited by Axel Spoerl 5 Jul 2024, 19:49
                          #19

                          I got it: Black Label!
                          Edit: Green Card.

                          Software Engineer
                          The Qt Company, Oslo

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            J.Hilk
                            Moderators
                            wrote on 8 May 2024, 07:10 last edited by
                            #20

                            This took me exceedingly long to get omfg.


                            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                            Q: What's that?
                            A: It's blue light.
                            Q: What does it do?
                            A: It turns blue.

                            1 Reply Last reply
                            0
                            • A Anonymous_Banned275
                              6 May 2024, 14:22

                              https://wiki.qt.io/Qt_for_Beginners

                              F Offline
                              F Offline
                              FeRDNYC
                              wrote on 11 May 2024, 23:57 last edited by
                              #21

                              @AnneRanch said in How to build real template class?:

                              https://wiki.qt.io/Qt_for_Beginners

                              The issue brought up here is far from the most objectionable thing on that page. I mean, have you seen THIS nonsense?

                              Qt (pronounced as "cute", not "cu-tee")

                              Not just no, but HELL no!

                              P S 2 Replies Last reply 12 May 2024, 00:02
                              0
                              • F FeRDNYC
                                11 May 2024, 23:57

                                @AnneRanch said in How to build real template class?:

                                https://wiki.qt.io/Qt_for_Beginners

                                The issue brought up here is far from the most objectionable thing on that page. I mean, have you seen THIS nonsense?

                                Qt (pronounced as "cute", not "cu-tee")

                                Not just no, but HELL no!

                                P Offline
                                P Offline
                                Pl45m4
                                wrote on 12 May 2024, 00:02 last edited by
                                #22

                                @FeRDNYC said in How to build real template class?:

                                Qt (pronounced as "cute", not "cu-tee")

                                Not just no, but HELL no!

                                More than enough people say it like this...
                                I mean, there is no right or wrong.
                                But I also don't like it as "cute".


                                If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                                ~E. W. Dijkstra

                                J 1 Reply Last reply 12 May 2024, 07:03
                                0
                                • P Pl45m4
                                  12 May 2024, 00:02

                                  @FeRDNYC said in How to build real template class?:

                                  Qt (pronounced as "cute", not "cu-tee")

                                  Not just no, but HELL no!

                                  More than enough people say it like this...
                                  I mean, there is no right or wrong.
                                  But I also don't like it as "cute".

                                  J Offline
                                  J Offline
                                  JonB
                                  wrote on 12 May 2024, 07:03 last edited by
                                  #23

                                  @Pl45m4 said in How to build real template class?:

                                  But I also don't like it as "cute".

                                  Interesting. I don't like it either and prefer "Q-T", but I make myself say "Cute" against my preference.

                                  1 Reply Last reply
                                  1
                                  • F FeRDNYC
                                    11 May 2024, 23:57

                                    @AnneRanch said in How to build real template class?:

                                    https://wiki.qt.io/Qt_for_Beginners

                                    The issue brought up here is far from the most objectionable thing on that page. I mean, have you seen THIS nonsense?

                                    Qt (pronounced as "cute", not "cu-tee")

                                    Not just no, but HELL no!

                                    S Offline
                                    S Offline
                                    SimonSchroeder
                                    wrote on 13 May 2024, 06:54 last edited by
                                    #24

                                    @FeRDNYC said in How to build real template class?:

                                    Not just no, but HELL no!

                                    You are only figuring that out now? Right from the get go (some 20 years ago) I already heard that the "official" pronunciation is "cute". Haven't adapted it yet... (I also don't say "cu-tee" because I'm German and it sounds more like "koo-teh".)

                                    Others have already played off this: There is a web toolkit for C++ heavily borrowing from Qt. It is called Wt (pronounced "witty").

                                    1 Reply Last reply
                                    0
                                    • J Offline
                                      J Offline
                                      J.Hilk
                                      Moderators
                                      wrote on 13 May 2024, 07:08 last edited by
                                      #25

                                      I'm never going to pronounce it cute, gun to my chest and all


                                      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                      Q: What's that?
                                      A: It's blue light.
                                      Q: What does it do?
                                      A: It turns blue.

                                      F 1 Reply Last reply 13 May 2024, 10:08
                                      1
                                      • J J.Hilk
                                        13 May 2024, 07:08

                                        I'm never going to pronounce it cute, gun to my chest and all

                                        F Offline
                                        F Offline
                                        FeRDNYC
                                        wrote on 13 May 2024, 10:08 last edited by
                                        #26

                                        @J-Hilk said in How to build real template class?:

                                        I'm never going to pronounce it cute, gun to my chest and all

                                        SRSLY.

                                        I resisted 30-odd years ago when they tried to convince us that SCSI was pronounced "sexy" (in fairness, so did everyone else), and I shall be no less resolute against this affront! "Cue tee" is the hill I'm willing to die on.

                                        1 Reply Last reply
                                        2

                                        17/26

                                        7 May 2024, 13:28

                                        • Login

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