Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    qt tutorial- colliding mouse : normalizeAngle

    General and Desktop
    3
    5
    1186
    Loading More Posts
    • 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.
    • M
      Mue22 last edited by

      http://doc.qt.io/qt-4.8/qt-graphicsview-collidingmice-example.html

      in this tutorial,

      what the function "normalizeAngle"??

      i can find it class and that web page..

      i can't use english well...

      1 Reply Last reply Reply Quote 0
      • M
        mchinand last edited by

        It's at the beginning of mouse.cpp (see the bottom of the page you linked to). It returns the equivalent angle within the range of 0 and 2 Pi.

        M 1 Reply Last reply Reply Quote 0
        • M
          Mue22 @mchinand last edited by

          @mchinand

          thanks!!!!!! I can write that function from example file.

          but i can't inclued <QGraphicsScene> :( and just can include <QGraphicsSceneEvent>.....it's wrong.

          what's the problem ?:(

          i can&#x27;t use english well...

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Hi,

            Qt 4 project ported to Qt 5 ? If so, you are probably missing a QT += widgetsin your .pro file

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

            M 1 Reply Last reply Reply Quote 0
            • M
              Mue22 @SGaist last edited by

              @SGaist

              i can't understand, but it works now...... i don't change anythig..;;

              Thanks to your help!

              i can&#x27;t use english well...

              1 Reply Last reply Reply Quote 0
              • First post
                Last post