Qt Forum

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

    How to Set Cursor before QEvent::Resize??

    General and Desktop
    2
    3
    2717
    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.
    • V
      vudvpro last edited by

      @bool Gadget::event(QEvent *event)
      {
      if (event->type() == QEvent::HoverEnter)
      {
      SetCursor(::LoadCursor(NULL, IDC_SIZEWE));
      }
      else if (event->type() == QEvent::HoverLeave)
      {
      SetCursor(::LoadCursor(NULL, IDC_SIZEWE));
      }

      return QWidget::event(event);
      }@
      It works but is very difficult to use.
      Please, help me!!
      Many thank!

      Vudv Vietnam

      1 Reply Last reply Reply Quote 0
      • G
        goetz last edited by

        SetCursor is not a Qt method.

        Maybe you're interested in "QCursor":http://doc.qt.nokia.com/4.7/qcursor.html

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • V
          vudvpro last edited by

          Thank for report!

          Vudv Vietnam

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