The existing LevelWindowWidget was implemented long time ago. The behavior of the slider is very inconsistent. For example when you move the slider up and down very fast the size of the slider is changed (in order to that also the level and window parameters are modified). Furthermore the widget was built up using a lot of decimal numbers in the code. Nobody could reconstruct the idea behind these numbers (This could e.g. the issue of T2188 where 30px are missing for the mouseMoveEvent).
One possible solution could be to use a spanSlider instead of creating a slider by reimplementing the paintEvent. A first version of the spanSlider (using QxtSpanSlider) is attached to this bug as a patch. To use the new SpanSlider in the application you need to replace the QmitkSliderLevelWindowWidget with the QmitkSpanSliderLevelWindowWidget in QmitkLevelWindowWidget.ui.