Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Learning
  3. Qt in Education
  4. QtLogo
Forum Updated to NodeBB v4.3 + New Features

QtLogo

Scheduled Pinned Locked Moved Qt in Education
4 Posts 2 Posters 3.8k Views 1 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.
  • X Offline
    X Offline
    XLeopard
    wrote on last edited by
    #1

    I can't find where "qtlogo.h" is

    1 Reply Last reply
    0
    • G Offline
      G Offline
      GentooXativa
      wrote on last edited by
      #2

      I have it into
      @./QtSdk/Examples/4.7/opengl/shared/qtlogo.h@

      Jose Vicente Giner Sanchez - Senior Mobile Developer

      www.gigigo.com

      C/ Dr. Zamenhof 36bis, 1ºA 28027 Madrid
      T: +34 917431436

      1 Reply Last reply
      0
      • X Offline
        X Offline
        XLeopard
        wrote on last edited by
        #3

        Thank you. I find it. It can work. But why the logo can't rotate with my mouse?

        The Link shows:
        GL.exe not found or not built by the last incremental link; performing full link

        What does it mean?

        1 Reply Last reply
        0
        • X Offline
          X Offline
          XLeopard
          wrote on last edited by
          #4

          @void GLWidget::mouseMoveEvent(QMouseEvent *event)
          {
          int dx = event->x() - lastPos.x();
          int dy = event->y() - lastPos.y();

          if (event->buttons() & Qt::LeftButton) {
              setXRotation(xRot + 8 * dy);
              setYRotation(yRot + 8 * dx);
          } else if (event->buttons() & Qt::RightButton) {
              setXRotation(xRot + 8 * dy);
              setZRotation(zRot + 8 * dx);
          }
          lastPos = event->pos();
          

          } @

          I delete the event->button() in mouseMoveEvent(), and it works.

          And I find that "event->buttons() & Qt::LeftButton " equals to "Qt::LeftArrow".
          Is it right?

          Edit: please wrap code sections in @ tags; Andre

          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