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. qt tutorial- colliding mouse : normalizeAngle
QtWS25 Last Chance

qt tutorial- colliding mouse : normalizeAngle

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.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.
  • M Offline
    M Offline
    Mue22
    wrote on last edited by
    #1

    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
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      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
      0
      • M mchinand

        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 Offline
        M Offline
        Mue22
        wrote on last edited by
        #3

        @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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • SGaistS SGaist

            Hi,

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

            M Offline
            M Offline
            Mue22
            wrote on last edited by
            #5

            @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
            0

            • Login

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