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. How to Set Cursor before QEvent::Resize??
Forum Updated to NodeBB v4.3 + New Features

How to Set Cursor before QEvent::Resize??

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.9k 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.
  • V Offline
    V Offline
    vudvpro
    wrote on 1 Mar 2011, 06:41 last edited by
    #1

    @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
    0
    • G Offline
      G Offline
      goetz
      wrote on 1 Mar 2011, 13:48 last edited by
      #2

      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
      0
      • V Offline
        V Offline
        vudvpro
        wrote on 25 Mar 2011, 10:06 last edited by
        #3

        Thank for report!

        Vudv Vietnam

        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