Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. another goofy "feature "
Forum Updated to NodeBB v4.3 + New Features

another goofy "feature "

Scheduled Pinned Locked Moved Unsolved The Lounge
9 Posts 4 Posters 1.9k 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1
    This post is deleted!
    sierdzioS J.HilkJ kshegunovK 3 Replies Last reply
    0
    • A Anonymous_Banned275

      This post is deleted!

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Yup, this happens from time to time. Usually it is enough to undo and try again and then it works fine.

      (Z(:^

      1 Reply Last reply
      0
      • A Anonymous_Banned275

        This post is deleted!

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @AnneRanch let me quote myself here:

        @J-Hilk said in Yet another questions about "go to slot" - #1 need an example adding / using signal parameters:

        @AnneRanch said in Yet another questions about "go to slot" - #1 need an example adding / using signal parameters:

        I like to further improve my "connect" skill using "go to slot ".

        let me stop you right here.

        If you wan't to improve your "connect" skill than never ever use the connect by name feature -aka go to slot, when using Designer plugin.
        These types of connections are very brittle, as a simple object rename would break your code


        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.

        A 1 Reply Last reply
        3
        • J.HilkJ J.Hilk

          @AnneRanch let me quote myself here:

          @J-Hilk said in Yet another questions about "go to slot" - #1 need an example adding / using signal parameters:

          @AnneRanch said in Yet another questions about "go to slot" - #1 need an example adding / using signal parameters:

          I like to further improve my "connect" skill using "go to slot ".

          let me stop you right here.

          If you wan't to improve your "connect" skill than never ever use the connect by name feature -aka go to slot, when using Designer plugin.
          These types of connections are very brittle, as a simple object rename would break your code

          A Offline
          A Offline
          Anonymous_Banned275
          wrote on last edited by
          #4

          @J-Hilk Yes, but...
          my BIGGEST problem is trusting Qt examples...
          in this case I am using "basic serial / terminal " and adding Bluetooth code to it.
          So I successfully added another "action" to existing menu and needed to add "clear all windows"...
          YES = my mistake = should have done it using code since I am now "an expert " in "connect" including
          lambda ( but do not spread it around..,.)

          J.HilkJ 1 Reply Last reply
          1
          • A Anonymous_Banned275

            @J-Hilk Yes, but...
            my BIGGEST problem is trusting Qt examples...
            in this case I am using "basic serial / terminal " and adding Bluetooth code to it.
            So I successfully added another "action" to existing menu and needed to add "clear all windows"...
            YES = my mistake = should have done it using code since I am now "an expert " in "connect" including
            lambda ( but do not spread it around..,.)

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @AnneRanch said in another goofy "feature ":

            @J-Hilk Yes, but...
            my BIGGEST problem is trusting Qt examples...

            Don't, (nearly)everyone who had the "pleasure" of trying to use examples from other c++ libraries, agrees that the ones from Qt are exceptionally good! You can trust them 100%

            in this case I am using "basic serial / terminal " and adding Bluetooth code to it.

            in that case it stops being "basic" rather quickly, I'm sure you have noticed :)

            YES = my mistake = should have done it using code since I am now "an expert " in "connect" including
            lambda

            Well, the quote is from 20 Jul 2021. Closing up on 3 years. "Expert" is debatable because everyone is unique, but more than enough time to get familiar with the core principle/mechanics of Qt, if you use it on a semi regular basis. I would say

            ( but do not spread it around..,.)

            My lips are sealed!🤫


            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
            2
            • A Anonymous_Banned275

              This post is deleted!

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

              @AnneRanch said in another goofy "feature ":

              For unbelievers - the function is in greyed area which is #ifdef - #endif block !

              This doesn't mean the function isn't called anywhere, on the contrary it's exactly what this linker error is all about - you have a function declaration that has no definition, which function is called. You broke your promise to the linker (intentionally or not), so it rightfully complains.

              Read and abide by the Qt Code of Conduct

              A 2 Replies Last reply
              3
              • kshegunovK kshegunov

                @AnneRanch said in another goofy "feature ":

                For unbelievers - the function is in greyed area which is #ifdef - #endif block !

                This doesn't mean the function isn't called anywhere, on the contrary it's exactly what this linker error is all about - you have a function declaration that has no definition, which function is called. You broke your promise to the linker (intentionally or not), so it rightfully complains.

                A Offline
                A Offline
                Anonymous_Banned275
                wrote on last edited by
                #7

                @kshegunov 150% of my posts in lounge are posted as in-between friends light "beer talk" style ... It is readers option to take them seriously or not...
                By same token - it is my option to further engage in "discussion" or move to another table....

                1 Reply Last reply
                0
                • kshegunovK kshegunov

                  @AnneRanch said in another goofy "feature ":

                  For unbelievers - the function is in greyed area which is #ifdef - #endif block !

                  This doesn't mean the function isn't called anywhere, on the contrary it's exactly what this linker error is all about - you have a function declaration that has no definition, which function is called. You broke your promise to the linker (intentionally or not), so it rightfully complains.

                  A Offline
                  A Offline
                  Anonymous_Banned275
                  wrote on last edited by
                  #8

                  @kshegunov Yes - it must be hard for linker to find the function in #ifdef BYPASS ...#endif block.
                  That is UNUSED code block...
                  Even if it was used code block - how did it get placed there ?

                  kshegunovK 1 Reply Last reply
                  0
                  • A Anonymous_Banned275

                    @kshegunov Yes - it must be hard for linker to find the function in #ifdef BYPASS ...#endif block.
                    That is UNUSED code block...
                    Even if it was used code block - how did it get placed there ?

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

                    If this is "just beer talk", then I truly wonder why I get summoned ...

                    @AnneRanch said in another goofy "feature ":

                    @kshegunov Yes - it must be hard for linker to find the function in #ifdef BYPASS ...#endif block.
                    That is UNUSED code block...

                    Indeed it must be hard for the linker, since the linker has no notion of source code, nor of #ifdef and alike preprocessor tokens. I think I've mentioned before, that it's truly beneficial to know C++ before claiming to use it, or a library for it.

                    In any case, the linker sees the prototype of the function (which is its name, also called a symbol) and it has the singular task of linking all calls to that function to the place that symbol is defined (at low level). There's no source at this point, no preprocessor, no compiler or w/e. The linker is the same machinery for all languages on a platform.

                    Even if it was used code block - how did it get placed there ?

                    This question is for you to answer. I'm certainly not going to ask my crystal ball.

                    Read and abide by the Qt Code of Conduct

                    1 Reply Last reply
                    3

                    • Login

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