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. Correct syntax to register object reference using qRegisterMetaType?
Forum Updated to NodeBB v4.3 + New Features

Correct syntax to register object reference using qRegisterMetaType?

Scheduled Pinned Locked Moved Solved General and Desktop
34 Posts 7 Posters 6.3k Views 4 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.
  • SPlattenS SPlatten

    @Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?

    Christian EhrlicherC Offline
    Christian EhrlicherC Offline
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on last edited by
    #24

    @SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:

    so perhaps this is something that needs looking at?

    This means that there is a thread context switch somewhere even you tell us it isn't.

    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
    2
    • SPlattenS SPlatten

      @Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?

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

      @SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:

      @Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?

      Run with QT_FATAL_WARNINGS=1 as an environment variable and extract the stack trace, then you will have leveraged your debugger to show you exactly where you're passing a reference between threads.

      Read and abide by the Qt Code of Conduct

      SPlattenS 1 Reply Last reply
      2
      • kshegunovK kshegunov

        @SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:

        @Christian-Ehrlicher , Well that's the only change I'm implemented and now there is no message, so perhaps this is something that needs looking at?

        Run with QT_FATAL_WARNINGS=1 as an environment variable and extract the stack trace, then you will have leveraged your debugger to show you exactly where you're passing a reference between threads.

        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #26

        @kshegunov said in Correct syntax to register object reference using qRegisterMetaType?:

        QT_FATAL_WARNINGS=1

        I've opened both .pro files and added that line, then cleaned and rebuilt, the applications have been running for several minutes, nothing to report, no issues.

        Kind Regards,
        Sy

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

          It's an environnement variable, not a define.

          You have to set it in the Run tab of the Project panel.

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

          SPlattenS 1 Reply Last reply
          1
          • SGaistS SGaist

            It's an environnement variable, not a define.

            You have to set it in the Run tab of the Project panel.

            SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by
            #28

            @SGaist , Yes, just googled it and then added as environment variable:

            export QT_FATAL_WARNINGS=1
            

            Then restarted, same, not seeing anything additional.

            Kind Regards,
            Sy

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

              Restarted what ?
              How are you currently running your application ?

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

              SPlattenS 1 Reply Last reply
              1
              • SGaistS SGaist

                Restarted what ?
                How are you currently running your application ?

                SPlattenS Offline
                SPlattenS Offline
                SPlatten
                wrote on last edited by
                #30

                @SGaist , I launch the processes with Qt Creator in debug mode, using two separate instances of Qt Creator.

                Kind Regards,
                Sy

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

                  Did you check the environment variables in the Run part of the Project Panel to ensure it's properly set ?

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

                  SPlattenS 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    Did you check the environment variables in the Run part of the Project Panel to ensure it's properly set ?

                    SPlattenS Offline
                    SPlattenS Offline
                    SPlatten
                    wrote on last edited by
                    #32

                    @SGaist , I checked in a terminal, I don't know how or where to "Run part of the Project Panel" ?

                    Kind Regards,
                    Sy

                    jsulmJ 1 Reply Last reply
                    0
                    • SPlattenS SPlatten

                      @SGaist , I checked in a terminal, I don't know how or where to "Run part of the Project Panel" ?

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by jsulm
                      #33

                      @SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:

                      I don't know how or where to "Run part of the Project Panel" ?

                      Easy to find actually.
                      Left pane: Projects -> Build & Run -> Run...

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

                      SPlattenS 1 Reply Last reply
                      2
                      • jsulmJ jsulm

                        @SPlatten said in Correct syntax to register object reference using qRegisterMetaType?:

                        I don't know how or where to "Run part of the Project Panel" ?

                        Easy to find actually.
                        Left pane: Projects -> Build & Run -> Run...

                        SPlattenS Offline
                        SPlattenS Offline
                        SPlatten
                        wrote on last edited by
                        #34

                        @jsulm , thank you, added it now, building now.

                        Kind Regards,
                        Sy

                        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