Results 1 to 3 of 3

Thread: changing mouse pointer

  1. #1
    Join Date
    Jan 2009
    Posts
    33
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Post changing mouse pointer

    hi i have created a toolbar in mainwindow. when i triggered one button in that it calls mousepointer() function as below. what i want is changet the mouse pointer shape .but it is working. can anyone help me

    void Window::mousepointer()
    {
    setShape(Qt::OpenHandCursor);
    }

  2. The following user says thank you to bhogasena for this useful post:


  3. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: changing mouse pointer

    did you see this method QWidget::setCursor?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  4. The following user says thank you to spirit for this useful post:


  5. #3
    Join Date
    Jan 2009
    Posts
    33
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: changing mouse pointer

    thanks for u r quick reply

    it's working now

  6. The following user says thank you to bhogasena for this useful post:


Similar Threads

  1. QTextEdit: get word under the mouse pointer?
    By zorro68 in forum Qt Programming
    Replies: 4
    Last Post: 13th November 2009, 16:42
  2. Changing mouse grabbing behavior?
    By FlyingSaucrDude in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2008, 02:04
  3. free mouse pointer
    By raflegan in forum Qt Programming
    Replies: 1
    Last Post: 1st October 2008, 15:11
  4. How can I hide the mouse pointer?
    By dimaz in forum Qt Programming
    Replies: 2
    Last Post: 22nd August 2008, 20:08
  5. Replies: 2
    Last Post: 24th July 2006, 19:36

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.