Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. mouseevent
    Log in to post

    • UNSOLVED Disabling mouse event in QGraphicsView?
      General and Desktop • qgraphicsview mouseevent disable • • lansing  

      2
      0
      Votes
      2
      Posts
      29
      Views

      @lansing https://doc.qt.io/qt-5/qwidget.html#enabled-prop https://doc.qt.io/qt-5/qgraphicsview.html#focusInEvent
    • UNSOLVED QGraphicsItem ignores mouse release event when ItemIsMovable is false.
      General and Desktop • qgraphicsview qgraphicsscene qgraphicsitem mouseevent flag • • Forfunckle  

      5
      0
      Votes
      5
      Posts
      76
      Views

      @mrjj Yes, it worked. Thank you!
    • SOLVED How to make mouseMoveEvent and keyPressEvent to be called interchangeably?
      General and Desktop • mouseevent qevent qglwidget keypressevent • • BoboFuego  

      8
      0
      Votes
      8
      Posts
      628
      Views

      @BoboFuego said in How to make mouseMoveEvent and keyPressEvent to be called interchangeably?: I don't know how to mark this thread as solved "Topic Tools" at the bottom right side and then "Mark as Solved".
    • SOLVED Button inherit stylesheet for no reason
      General and Desktop • stylesheet mouseevent qpushbutt • • legitnameyo  

      17
      0
      Votes
      17
      Posts
      671
      Views

      @KillerSmath fix did the work, combined with @mrjj QGroupButton! I added this code to style the pressed button void MainWindow::onGroupButtonClicked(int btn_id) { g_btns->button(btn_id)->setStyleSheet(QString("QPushButton {color: #444444; background: #cccccc; border: 2px solid #cccccc; border-width: 0px 0px 2px 0px;} QPushButton:hover {border: 2px black solid; color: #333333; background-color: #F7F7F7;} QPushButton:pressed {background: #cccccc;}")); } Thanks a lot guys!
    • SOLVED register mouse movement inside a particular window?
      General and Desktop • signal window mouse mouseevent movement • • 4oh4  

      2
      0
      Votes
      2
      Posts
      216
      Views

      Solved, overrode the standard event() and just used event.type() == QEvent::hovermove to get what I needed.
    • SOLVED How to know when cursor is out of qlabel when clicked??
      General and Desktop • qlabel mouseevent • • vasu_gupta  

      8
      0
      Votes
      8
      Posts
      2499
      Views

      Hi should that not be pointer ? QRubberBand rubberBand; -> QRubberBand * rubberBand; (since you do rubberBand= new QRubberBand(QRubberBand::Rectangle,this) ) that would explain all 3 errors.
    • UNSOLVED In MouseArea.onEntered, detect if the cause is only that the *MouseArea* moved and came to be under the cursor
      QML and Qt Quick • mouseevent input • • Stefan Monov76  

      1
      0
      Votes
      1
      Posts
      320
      Views

      No one has replied

    • UNSOLVED Qt Quick: How to handle hover-type events in MouseArea, yet let lower-z MouseAreas handle them too?
      QML and Qt Quick • mouseevent event-handling • • Stefan Monov76  

      3
      0
      Votes
      3
      Posts
      891
      Views

      @jalomic: No, sorry, I haven't.
    • UNSOLVED How to override mouse controls for the QOrbitCameraController class?
      General and Desktop • qt5.7 mouseevent qorbitcamera • • Poorti  

      6
      0
      Votes
      6
      Posts
      1624
      Views

      I know, quite a bit old. But it took me a long time to find the right solution... Take a look at this: stack overflow : My Qt eventFilter() doesn't stop events as it should It does the trick for me. -JET
    • SOLVED How to catch a “drag windows”event in Qt?
      General and Desktop • mouseevent • • MartinChan  

      5
      0
      Votes
      5
      Posts
      2524
      Views

      @mrjj thx very much and I will try to use winapi way to solve it.
    • UNSOLVED hovered widget selection
      General and Desktop • mouseevent signals&slots • • geor  

      3
      0
      Votes
      3
      Posts
      621
      Views

      @Ni.Sumi my prolem is that I am using qmouse event to display coordinates on a widget but I want it only when the cursor is on a specific widget . even thought my connect signals is on that widget the function that shows the coordinates is still active outside that widget and it show random usles stuff
    • SOLVED void MainWindow::mouseMoveEvent ( QMouseEvent * e )
      General and Desktop • qtableview qtextedit mouseevent • • cdcc0606  

      5
      0
      Votes
      5
      Posts
      2352
      Views

      Then you should rather use an event filter so you'll only test when there's something currently going on with your button.
    • SOLVED Change mouse cursor when hover on image in QTextEdit
      General and Desktop • qtextedit mouseevent cursor • • HenrikSt.  

      3
      0
      Votes
      3
      Posts
      1681
      Views

      Ok, thanks. This solved my problem
    • UNSOLVED Astropad and Tablet events
      General and Desktop • mouseevent tablet astropad • • Alexei  

      3
      0
      Votes
      3
      Posts
      918
      Views

      Thanks for the welcome! I've posted the question to the interest list. Cheers.
    • SOLVED QLabel - mouseReleaseEvent to parent - HTML label
      General and Desktop • qlabel html mouseevent • • antonlindgren  

      7
      0
      Votes
      7
      Posts
      2509
      Views

      @mrjj Wow, super. That actually solved it. Thank you so much for your response, your time and your help. I really appreciate it. Thanks. Best regards, Anton
    • UNSOLVED Library for painting graphics items
      General and Desktop • mouseevent graphics scene graphicsitem • • Marianne Stecklina  

      1
      0
      Votes
      1
      Posts
      403
      Views

      No one has replied

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

      3
      0
      Votes
      3
      Posts
      1651
      Views

      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!
    • UNSOLVED Drawing a rectangle selection box on QImage using Mouse?
      Mobile and Embedded • mouseevent qt 5 rectangles • • MarKS  

      2
      0
      Votes
      2
      Posts
      2786
      Views

      Hi, QRubberBand might be of interest in your case. Hope it helps
    • QMenu blocks mouse events
      General and Desktop • qmenu mouseevent right-click • • m_jero  

      2
      0
      Votes
      2
      Posts
      809
      Views

      @m_jero I don't know why nobody answers this question. Maybe because you didn't supply any code snippets as recommended. Anyway, I suppose you used the exec() function to show the qmenu. Try to use popup() instead and see if it works.
    • [Solved] Send generated MouseEvents to Kernel event / DirectFB linux_input event
      Mobile and Embedded • event mouseevent directfb • • McLion  

      4
      0
      Votes
      4
      Posts
      1410
      Views

      @tomma Thanks a lot! That was great input. While reading about uinput the idea of writing to the event itself instead crossed me. I implemented a function that generates the various (basic) events of a touch screen and writing it directly to event0. It works perfect so far.
    • Event filter in QML or How to detect the multiple mouse events in a smart way
      QML and Qt Quick • qml c++ qtquick mouseevent eventfilter • • vishnu  

      9
      0
      Votes
      9
      Posts
      3856
      Views

      @p3c0 Where exactly i should put that code? As I asked earlier how should i know which button is pressed ?If you see my code I did with a signal but in that case i would need so many signals which is not a smart way to do. I am thinking of Bit masking .For example (sudo code) OnClicked(Object sender) { if(sender == "BIT1") { BYTE1 |= 0x01; // AND operation BYTE2 &= 0xFE; // OR operation } But don't know how to get that object and implement in qml.
    • Mouse Events on QGraphicsview and Object Movement
      General and Desktop • qgraphicsview mouseevent • • tmoranduzzo  

      3
      0
      Votes
      3
      Posts
      2062
      Views

      @Asperamanca Oh yes! you're right! very stupid error! thanks!
    • QScroller vs mouseReleaseEvent, quite trigger happy
      Mobile and Embedded • mouseevent • • Heiko93  

      1
      0
      Votes
      1
      Posts
      388
      Views

      No one has replied

    • Multiple QRect
      General and Desktop • mouseevent eventfilter qrect • • Sidii  

      9
      0
      Votes
      9
      Posts
      2737
      Views

      @p3c0 You can upvote answer if you find it useful ;)