Results 1 to 8 of 8

Thread: Changing cursor shape

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Changing cursor shape

    I meant: Lable->unsetCursor();

  2. #2
    Join Date
    Nov 2011
    Location
    Poland
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Changing cursor shape

    ------------------------------------------------------------
    To MarekR22
    ------------------------------------------------------------
    As I wrote in post #3 this instruction hasn't any effect!

    Thank you for your help!

    ---------------------------------------------------------------------------
    To Lykurg
    ---------------------------------------------------------------------------
    First - I'm clicking on the window and the cursor changes as expected
    (open hand - closed hand);
    Next - I'm moving the cursor to the label and I'm clicking on this label:
    in first example cursor changes as expected (open hand - closed hand),
    in second example cursor changes to IBeam and of course not changes;
    Then - I'm moving the cursor back to the window - in both cases the cursor
    changes to open hand (as expected) - BUT, if now I'm clicking
    on the window the cursor stays still open hand (no regard,
    if I clicked on the label in step Next or only moved the cursor
    over the label) - THIS IS MY PROBLEM!

    Thank you for your help!

    Sorry for my english!

  3. #3
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Changing cursor shape

    Yep, it's happening and it's odd.
    QCursor::shape() returns correct value in mousePress/Release but the visible shape of the cursor doesn't change.

    No idea why it's happening.

  4. #4
    Join Date
    Nov 2011
    Location
    Poland
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Changing cursor shape

    Spitfire, thank you for your attempt!

Similar Threads

  1. Replies: 0
    Last Post: 18th January 2011, 16:59
  2. QDockWidget splitter, cursor shape
    By alecs1 in forum Qt Programming
    Replies: 4
    Last Post: 12th December 2007, 18:44
  3. Shape changing under other tab using slider/spinbox
    By kramed in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2007, 19:59
  4. Cursor not changing
    By bpetty in forum Newbie
    Replies: 4
    Last Post: 17th July 2007, 15:13
  5. Shape-changing dialog with qt4.1
    By moe in forum Qt Tools
    Replies: 3
    Last Post: 2nd February 2006, 10:12

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
  •  
Qt is a trademark of The Qt Company.