#104 MacOSX: MouseActions taking offset from MenuBar and Dock widget


This bug seems to only affect Mac OSX...

For some reason the mouse pointer (actually it's decorations such as cross, labels, selection box,...) while on the schematic viewport are taking offsets proportional to the menubar or the dock widget.

I documented it some time ago over here:


  • Guilherme

    Guilherme - 2013-06-17

    Thank you for the links.

    If you don't want to read it all: Please don't consider this bug a blocker for the release!

    I was just looking up this bug. Well, I can use lines and wires normally. They are properly drawn under the tip of mouse cursor as they should be. The problem is with the decorations. Some decorations (such as the cross to help draw wires) are not close to the mouse cursor (symbols for components are OK, they are centered on the mouse cursor). It looks like the viewport is taking the offset of the dock and the toolbar (I think it is clear from the figures on the link I gave).

    Some decorations (GND symbol) actually get rotated if I zoom in/out before inserting them on the schematic.

    On top of that, things are being drawn twice, no? If I move the mouse fast enough out of the schematic area two 'ghost' drawings are left behind on the schematic. Have a look on the lines commented with 'erase old' and 'paint' on mouseactions.cpp

    What is the purpose of the flag 'drawn = true'?

    It is also confusing the ViewPainter and the QPainter... Yes I know it was a workaround.

    Actually I'm having a hard time to figure out all the variables used on the schematic, scale and DOC_{X,Y}POS and SCR{X,Y}_POS ...
    4 x View{X,Y}{1,2}
    4 x Used{X,Y}{1,2}
    4 x tmpView{X,Y}{1,2}
    4 x usedView{X,Y}{1,2}
    6 x MA{x,y}{1,2,3}

    There must be an easier way to implement it...

    The program is usable if you ignore the drawing issues. It puzzles me that it only affects the Mac version.

    I'll see if I can find a easy fix with QCursor. Otherwise I will simply remove the funny decorations after the release 0.0.17 to create the Mac package.

    Indeed, I would rather spend my time on post-0.0.17 to reimplement the schematic with QGraphicsView than tracking this silly bug down.


  • Frans

    Frans - 2013-06-17

    sure, QGraphicsView is the way to go, I also think qucs is usable if it's only those few displacements of the cursor.
    Only one new bug is now blocking the release. #105

  • Frans

    Frans - 2013-06-19

    Hi Guilherme, what do you think, shall we close this bug and fix it after the release by replacing the graphics with QGraphicsScene?

  • Guilherme

    Guilherme - 2013-06-19

    The bug will exist. Can we create another group/milestone 0.0.18 and move this thicket there?

  • Frans

    Frans - 2013-06-20
    • Group: 0.0.17 --> 0.0.18
  • Frans

    Frans - 2013-06-20

    Ok, I have changed the milestone to 0.0.18, we will fix this by completely reimplementing the graphics

  • Guilherme

    Guilherme - 2014-08-04

    (Finally!!) Fixed with commit c7e1447b901

  • Guilherme

    Guilherme - 2014-08-04
    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks