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. can some one help me solve this error
QtWS25 Last Chance

can some one help me solve this error

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 4 Posters 982 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    Object::connect: Cannot queue arguments of type 'QTextCursor'
    (Make sure 'QTextCursor' is registered using qRegisterMetaType().)
    QObject::connect: Cannot queue arguments of type 'QTextCharFormat'
    (Make sure 'QTextCharFormat' is registered using qRegisterMetaType().)

    when I enter Tcl source command on QTextBrowser , then I get this error any idea why we get this error

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

      The error message tells you what you can do to solve the error: Make sure 'QTextCharFormat' is registered using qRegisterMetaType()
      If you're using Queued Connections you have to make sure all types are registered with qRegisterMetaType.

      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
      • Q Offline
        Q Offline
        Qt Enthusiast
        wrote on last edited by
        #3

        I am utry to call Tcl_eval an it is different thread

        1 Reply Last reply
        0
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @Qt-Enthusiast
          Hi
          try to register QTextCursor and QTextCharFormat
          with qRegisterMetaType
          qRegisterMetaType<QTextCursor >("QTextCursor ");
          qRegisterMetaType<QTextCharFormat>("QTextCharFormat");

          BEFORE you try to use it.
          so like in main.cpp

          1 Reply Last reply
          3
          • Q Offline
            Q Offline
            Qt Enthusiast
            wrote on last edited by
            #5

            I did

            I am still getting the error

            i did

            Q_DECLARE_METATYPE(QTextCursor)
            Q_DECLARE_METATYPE(QTextFormat)

            I am still getting the error

            mrjjM 1 Reply Last reply
            0
            • Q Qt Enthusiast

              I did

              I am still getting the error

              i did

              Q_DECLARE_METATYPE(QTextCursor)
              Q_DECLARE_METATYPE(QTextFormat)

              I am still getting the error

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Qt-Enthusiast
              and you did use
              qRegisterMetaType
              too ?

              1 Reply Last reply
              2
              • Q Offline
                Q Offline
                Qt Enthusiast
                wrote on last edited by
                #7

                No I did not use that

                mrjjM 1 Reply Last reply
                -1
                • Q Qt Enthusiast

                  No I did not use that

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Qt-Enthusiast
                  But that is the one you must use.
                  Q_DECLARE_METATYPE is not the same.

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

                    @Qt-Enthusiast said in can some one help me solve this error:

                    No I did not use that

                    And then you wonder why it does not work... really strange. The error message exactly tells you what to do and you're ignoring it even two people telling you to do so...

                    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
                    3
                    • Q Offline
                      Q Offline
                      Qt Enthusiast
                      wrote on last edited by
                      #10

                      after that also it is crashing

                      jsulmJ 1 Reply Last reply
                      0
                      • Q Qt Enthusiast

                        after that also it is crashing

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

                        @Qt-Enthusiast said in can some one help me solve this error:

                        after that also it is crashing

                        Well, then use the debugger, check the stack trace, ...

                        https://forum.qt.io/topic/113070/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