+ found a solution using painter path to fix the text rending in image view

This commit is contained in:
wmayer
2017-11-08 14:49:23 +01:00
parent ec1bcccb82
commit 547af2f5b2
3 changed files with 44 additions and 52 deletions

View File

@@ -61,7 +61,7 @@ ImageView::ImageView(QWidget* parent)
// In order to fix this problem we directly pass the pointer of the parent
// of this ImageView, i.e. the main window.
// Note:
// Since Qt the class QGLWidget is marked as deprecated and should be
// Since Qt5 the class QGLWidget is marked as deprecated and should be
// replaced by QOpenGLWidget.
#if defined(HAVE_QT5_OPENGL)
@@ -489,7 +489,7 @@ void ImageView::wheelEvent(QWheelEvent * cEvent)
void ImageView::showEvent (QShowEvent *)
{
//_pGLImageBox->setFocus();
_pGLImageBox->setFocus();
}
// Update the status bar with the image parameters for the current mouse position