Results 1 to 4 of 4

Thread: QScrollArea wheel focus

  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default QScrollArea wheel focus

    Hey guys,

    I'm using a QScrollArea.
    I'd like to have automatic wheel focus when I'm entering the cursor inside it.

    Is it possible?

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QScrollArea wheel focus

    But you already do... If you scroll the wheel while mouse is on a scroll bar then it works by default/.

  3. #3
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Re: QScrollArea wheel focus

    I guess what I want to do is :

    Set focus on a widget when wheeling inside it.

    I'm using a QScrollArea inside another widget,
    When it looses focus, I need to click it to get focus back, and then scroll.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QScrollArea wheel focus

    So.. what's the problem? Did you try enforcing focus in wheelEvent()?
    J-P Nurmi

Similar Threads

  1. Tab/Enter focus problem
    By b1 in forum Qt Programming
    Replies: 4
    Last Post: 23rd October 2006, 23:34
  2. Replies: 2
    Last Post: 8th October 2006, 20:14

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.