Results 1 to 2 of 2

Thread: mousepress event

  1. #1
    Join Date
    Feb 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Windows

    Post mousepress event

    hi,
    when i hold the mouse left button at any four sides of widget, i have to pan my screen continuously until mouse is released.but my problem is it is panning only when i presses and released and again pressed. if i pressed continuously it is panning only once.
    can anyone suggest me how to overcome this problem?

  2. #2
    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: mousepress event

    Sounds like you want to implement something similar than QAbstractItemView::autoScroll.

    PS. Remember that we don't know your application. You have to be more specific if you want more specific answers. Things like how the panning was implemented and using what components do matter.
    J-P Nurmi

Similar Threads

  1. Replies: 4
    Last Post: 19th February 2009, 11:10
  2. Custom event gets not propagated to the top level widget
    By nightghost in forum Qt Programming
    Replies: 0
    Last Post: 29th January 2009, 09:06
  3. Event propagation direction
    By spraff in forum Qt Programming
    Replies: 0
    Last Post: 6th December 2008, 21:03
  4. Qt event queue overloading?
    By gct in forum Qt Programming
    Replies: 3
    Last Post: 17th March 2008, 18:39
  5. Workload in a QThread blocks main application's event loop ?
    By 0xBulbizarre in forum Qt Programming
    Replies: 14
    Last Post: 9th April 2006, 21:55

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.