MidiEditor icon indicating copy to clipboard operation
MidiEditor copied to clipboard

Transition to QGraphicsView.

Open easyaspi314 opened this issue 8 years ago • 1 comments

Lovely. All this work we put in and there were classes that did the things we needed it to all along.

QGraphicsView and QGraphicsScene

The QGraphicsView class provides a widget for displaying the contents of a QGraphicsScene. The QGraphicsScene class provides a surface for managing a large number of 2D graphical items.

QGraphicsView inherits QAbstractScrollArea and has options for avoiding repaints and such, and QGraphicsScene has item holders, caches, adding rects, selections, and grouping.

Additionally, QAbstractScrollArea::setViewportMargins() would be helpful, as long as we can figure out what they mean by putting widgets inside the margins.

We need to transition to this, unfortunately, if we ever plan to progress past this repainting hell which, as I found out, is still happening even after my optimizations.

I am working on it as we speak.

  • [x] Basic visuals
  • [x] Selection (partial, built-in feature)
  • [ ] Moving and Snapping
  • [ ] Antialiasing
  • [ ] Creation/Deletion
  • [ ] Hiding/showing layers
  • [ ] Per channel/per track colors
  • [ ] Syncing changes with MidiFile
  • [ ] Convert MiscWidget as well

easyaspi314 avatar Oct 08 '17 03:10 easyaspi314

screen shot 2017-10-14 at 3 15 13 pm Progress! It is very messy, though.

Also, I found my display adapter, so I can hook up my MacBook to my external monitor, keyboard and mouse, so I can be more efficient.

easyaspi314 avatar Oct 14 '17 19:10 easyaspi314