Results 1 to 2 of 2

Thread: [HELP] Display Mouse pointer/cursor ??

  1. #1
    Join Date
    May 2007
    Posts
    10
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Question [HELP] Display Mouse pointer/cursor ??

    Hi all,

    I'm porting my Qt4.2.2 application to my Embest Kit, it contain Linux OS.

    In my application, I have a GUI allows use interface with, and I don't know how to display mouse pointer/cursor in my application.

    I had mouse driver , and I also cross-compile my app to arm target board.

    Pls help me to solve this problem.

    Thanks in advance.
    ANH.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: [HELP] Display Mouse pointer/cursor ??

    Just use:
    virtual void mouseDoubleClickEvent ( QMouseEvent * event )
    virtual void mouseMoveEvent ( QMouseEvent * event )
    virtual void mousePressEvent ( QMouseEvent * event )
    virtual void mouseReleaseEvent ( QMouseEvent * event )
    And for the position:
    QMouseEvent
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

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.