Results 1 to 20 of 26

Thread: QTabWidget / mouseMoveEvent

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTabWidget / mouseMoveEvent

    Did you read the docs for this method? I really doubt you want to use it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Apr 2011
    Posts
    132
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QTabWidget / mouseMoveEvent

    "If mouse tracking is disabled (the default), the widget only receives mouse move events when at least one mouse button is pressed while the mouse is being moved.
    If mouse tracking is enabled, the widget receives mouse move events even if no buttons are pressed."

    I don't want to track the mouse when a button is pressed. I want track it when ever I mouse over on ? So I guess I need it enabled. No ?

    Explain if no please ?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTabWidget / mouseMoveEvent

    Quote Originally Posted by migel View Post
    I don't want to track the mouse when a button is pressed. I want track it when ever I mouse over on ? So I guess I need it enabled. No ?
    Have you considered the fact that QTabWidget already handles mouse events and expects to receive mouse move events only when mouse button is pressed and that you are breaking this functionality with mouse tracking? Also, do your mouse event handlers reimplementations assure that the original functionality is retained? And do you really think I asked why did you enable mouse tracking to hear "because I want to track the mouse"?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Apr 2011
    Posts
    132
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QTabWidget / mouseMoveEvent

    I am apologize for "because I want to track the mouse" if that hurt you feelings. But if QTabWidget handles mouse events and expects to receive mouse move only when mouse button is pressed so how to fix that if not putting mouse tracking ? I don't want to press the button.

    Also that what I know of any QWidget defaults to receive mouse move event when button is pressed, and doc says that to enable it you gotta enable mouse move tracking.

    So if you saying it actually breaking it so I am very confused. Any way removing it does not fix it. Still need to press the btn to receive the mouse event.

    Any way did not put it into QtabWidget only for a widget added to the TAB and to mainwindow. Adding it to QTabWidget does not help as well.

    Thanks for help
    Last edited by migel; 10th October 2011 at 09:58.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTabWidget / mouseMoveEvent

    Quote Originally Posted by migel View Post
    I am apologize for "because I want to track the mouse" if that hurt you feelings.
    Don't worry about my feelings. You are just wasting your time giving such answers. And risk me losing my patience and stopping trying to help you.

    But if QTabWidget handles mouse events and expects to receive mouse move only when mouse button is pressed so how to fix that if not putting mouse tracking ? I don't want to press the button.
    What do you want? Or let me make myself more explicit... what is the ultimate goal you are trying to obtain by handling mouse events in this particular situation?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 6
    Last Post: 21st August 2013, 12:53
  2. QTableWidget mouseMoveEvent
    By mbjerkne in forum Qt Programming
    Replies: 2
    Last Post: 29th May 2013, 20:53
  3. mouseMoveEvent
    By weixj2003ld in forum Qt Programming
    Replies: 1
    Last Post: 3rd November 2009, 09:04
  4. About the mouseMoveEvent()
    By bingoking in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2008, 11:56
  5. mousemoveevent on desktop
    By kernel_panic in forum Qt Programming
    Replies: 2
    Last Post: 29th June 2007, 14:49

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.