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. [SOLVED] QQuaternion has no member named conjugated

[SOLVED] QQuaternion has no member named conjugated

Scheduled Pinned Locked Moved Solved General and Desktop
qt 5.5.1
9 Posts 3 Posters 2.5k 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.
  • H Offline
    H Offline
    holzkohlengrill
    wrote on last edited by holzkohlengrill
    #1

    The title already explains my problem. When looking up QQuaternion::conjugate() from the documentation (the one in Qt Creator) it is said:

    The following members of class QQuaternion are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
    ...
    Use conjugated() instead.

    But when I use conjugated() I got an error message:

    'class QQuaternion' has no member named 'conjugated'
       m_world.rotate(m_rotation.conjugated());
                                 ^
    

    I am using:

    Qt Creator 3.6.0
    Based on Qt 5.5.1 (MSVC 2013, 32 bit)
    Built on Dec 15 2015 01:01:38
    From revision b52c2f91f5

    kshegunovK 1 Reply Last reply
    0
    • H holzkohlengrill

      The title already explains my problem. When looking up QQuaternion::conjugate() from the documentation (the one in Qt Creator) it is said:

      The following members of class QQuaternion are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
      ...
      Use conjugated() instead.

      But when I use conjugated() I got an error message:

      'class QQuaternion' has no member named 'conjugated'
         m_world.rotate(m_rotation.conjugated());
                                   ^
      

      I am using:

      Qt Creator 3.6.0
      Based on Qt 5.5.1 (MSVC 2013, 32 bit)
      Built on Dec 15 2015 01:01:38
      From revision b52c2f91f5

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

      @holzkohlengrill
      Hello,
      The method should be available. Have you included the header?

      Kind regards.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        holzkohlengrill
        wrote on last edited by
        #3

        I can useconjugate() without any problems and already use quaternions in my program. So this should not be the reason.

        kshegunovK 1 Reply Last reply
        0
        • H holzkohlengrill

          I can useconjugate() without any problems and already use quaternions in my program. So this should not be the reason.

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

          @holzkohlengrill
          Are you using Qt 4? It doesn't seem to be the case, since there no such method in Qt 4.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          0
          • H Offline
            H Offline
            holzkohlengrill
            wrote on last edited by holzkohlengrill
            #5

            Version 5.4.2 is used.
            This is odd because it is not using the version stated in the "About Qt Creator..." dialog.
            However a version of Qt5 is used, so it should work.. any other suggestions?

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

              hi
              maybe a silly question
              http://doc.qt.io/qt-5/qquaternion.html#conjugated

              it says
              This function was introduced in Qt 5.5.

              so would not be there in Version 5.4.2 ?
              Or ??

              1 Reply Last reply
              1
              • H Offline
                H Offline
                holzkohlengrill
                wrote on last edited by holzkohlengrill
                #7

                That makes sense. I wasn't thinking about that again because Qt Creator showed me 5.5.1 then I found out that this was not true.
                Now it is clear why it is not working but why is it then using 5.4.2 (this is what qDebug() << "Qt " << QT_VERSION_STR;shows me) instead of 5.5.1?

                kshegunovK 1 Reply Last reply
                0
                • H holzkohlengrill

                  That makes sense. I wasn't thinking about that again because Qt Creator showed me 5.5.1 then I found out that this was not true.
                  Now it is clear why it is not working but why is it then using 5.4.2 (this is what qDebug() << "Qt " << QT_VERSION_STR;shows me) instead of 5.5.1?

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

                  @holzkohlengrill
                  Qt creator is an IDE. It can be linked against pretty much any version of Qt and this is in no way connected to what version of Qt you use for developing. For example, my Qt creator uses Qt 5.5 (as well), but I have binaries (the library itself) for versions 5.5, 5.6 and the development branch from the repositories.

                  Read and abide by the Qt Code of Conduct

                  1 Reply Last reply
                  1
                  • H Offline
                    H Offline
                    holzkohlengrill
                    wrote on last edited by holzkohlengrill
                    #9

                    Now I realised what my mistake was. When you click (in project settings) on a different kit it is automatically enabled.
                    I thought the version will only be changed when you choose one with the button (computer symbol) in the bottom left corner.

                    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