Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. mouse

    Log in to post
    • All categories
    • timob256

      Unsolved How automation on qt?
      General and Desktop • mouse automation screenshot • • timob256

      3
      0
      Votes
      3
      Posts
      55
      Views

      jsulm

      @timob256 I'm not sure whether you want to animate the mouse cursor movement, if that is what you want then take a look at https://doc.qt.io/qt-5/animation-overview.html

    • S

      Unsolved MouseArea enabled property
      QML and Qt Quick • mouse qt6 • • sabracadabra

      1
      0
      Votes
      1
      Posts
      59
      Views

      No one has replied

    • C

      Unsolved qtcreator in docker container through vnc
      General and Desktop • docker vnc qtcreator mouse keyboard • • ChristopherBignamini

      1
      0
      Votes
      1
      Posts
      438
      Views

      No one has replied

    • S

      Solved Accept/reject focus coming by mouse click, based on coordinates
      General and Desktop • widget focus mouse • • sommerluk

      11
      0
      Votes
      11
      Posts
      1463
      Views

      S

      Okay, got it: Relevant code resides in QApplication and cannot be changed by subclassing QWidget. There’s no way around Qt::FocusPolicy but there is the possibility to add other attributes.

      Thanks a lot!

    • jeanmilost

      Solved MouseArea prevents the parent scrolling to work properly
      QML and Qt Quick • mouse mousearea mouseevents scroll tableview • • jeanmilost

      2
      0
      Votes
      2
      Posts
      512
      Views

      jeanmilost

      Finally I searched a while by myself, and I think I may answer my own question. Although I couldn't completely resolve my issue, I noticed that the answer is hidden in the other MouseArea events. For example, by handling the onPressed event and adding the mouse.accepted in several key locations, I could let the component take care of the scrolling when the left mouse button is pressed, whereas the right click opens a popup menu.

      My conclusion is that there is no ready-to-use way, i.e there is no parameter to activate in the MouseArea itself which may resolve this kind of issue, and the solution is a good balance between activating different parameters in the different functions.

    • 4

      Solved register mouse movement inside a particular window?
      General and Desktop • mouse mouseevent window signal movement • • 4oh4

      2
      0
      Votes
      2
      Posts
      438
      Views

      4

      Solved, overrode the standard event() and just used event.type() == QEvent::hovermove to get what I needed.

    • N

      Unsolved Check state change only when mouse clicks on checkbox
      General and Desktop • qlistwidget mouse checkstate • • nebulaekg

      6
      0
      Votes
      6
      Posts
      2634
      Views

      A

      @nebulaekg It wasn't wrong, it was just the easy method. With easy comes very little customization. Now that you want to change it's behavior it becomes much harder. For simple lists you can definitely use the widget but for anything more you want a view/model and then delegates to control display.

      Check into it I'm sure you'll find it's not that much harder than the widget and will give you the control you want. :)

    • F

      Unsolved Proper way to snap widget to mouse and ensure fluent movement.
      General and Desktop • moving widget mouse • • frogi16

      1
      0
      Votes
      1
      Posts
      456
      Views

      No one has replied

    • ?

      Solved Resize image with mouse QTextEdit
      General and Desktop • image resize qtextedit mouse • • A Former User

      10
      0
      Votes
      10
      Posts
      4200
      Views

      S

      @mrjj
      I don't want to resize it via a dialog. I need to do that with the mouse (manually)

    • M

      Solved Qt 5.8.0 embedded, LinuxFB, integrate mouse
      Installation and Deployment • embedded linux qt5.8.0 mouse • • Mosolov

      4
      0
      Votes
      4
      Posts
      5020
      Views

      SGaist

      Because QWS is Qt 4 only.

    • W

      Unsolved Ein MousEvent auf einen QDockWidget anlegen
      German • mouse • • WhiteBeard

      1
      0
      Votes
      1
      Posts
      420
      Views

      No one has replied

    • HunterMetcalfe

      Solved Move Mouse when tab clicked on keyboard
      General and Desktop • key event mouse movemouse • • HunterMetcalfe

      7
      0
      Votes
      7
      Posts
      1987
      Views

      raven-worx

      @HunterMetcalfe said:

      @raven-worx Quick question again. So I have a QWidget that is made up of other QWidgets. For BaseClass:: would that perhaps just be QWidget or would it be the Widget that contains that widget.

      What i meant is that you need to subclass every widget type and reimplement this method for every widget (and parent widget) you'd like to see this behavior.

      So if you only want it to happen for a certain container, every child widget of the container has to have this method reimplemented.

    • mstew

      Unsolved Mouse focus on application AND in background operating system
      General and Desktop • raspberry pi qt5 mouse focus • • mstew

      1
      0
      Votes
      1
      Posts
      561
      Views

      No one has replied

    • racoon

      Sub menu opening on wrong mouse button click in Qt5 (5.5.1) (on Windows (7?)?)?
      General and Desktop • submenue windows qt5 mouse • • racoon

      18
      0
      Votes
      18
      Posts
      4982
      Views

      racoon

      Filed a bug report at https://bugreports.qt.io/browse/QTBUG-53054.

    • D

      Unsolved PyQt5 & QDialog Mouse Focus
      Language Bindings • pyqt5 qdialog mouse focus issue qt5.5 • • danauerbach

      1
      0
      Votes
      1
      Posts
      1807
      Views

      No one has replied

    • J

      Unsolved Activating window when mouse hovers over it
      General and Desktop • hover window mouse mouseevent qt5 • • js0823

      3
      0
      Votes
      3
      Posts
      2233
      Views

      J

      Oops sorry about that. I'll write Qt from now on haha. Thanks for correcting me.

      Also, thank you for the info. I am looking into it right now!

    • kshegunov

      Unsolved Drawing a virtual mouse cursor
      General and Desktop • widgets mouse mouse control cursor • • kshegunov

      2
      0
      Votes
      2
      Posts
      1340
      Views

      No one has replied

    • qwasder85

      Unsolved "ReferenceError: mouse is not defined" in MouseArea
      QML and Qt Quick • mousearea mouse • • qwasder85

      4
      0
      Votes
      4
      Posts
      3617
      Views

      SGaist

      You're welcome !

      Since the mystery is gone, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

    • kshegunov

      Solved Restrict mouse cursor movement
      General and Desktop • widgets main window mouse mouse control • • kshegunov

      14
      0
      Votes
      14
      Posts
      11887
      Views

      W

      more cursors

      [EDIT: Irrelevant link removed --JKSH]