+ 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

@@ -84,7 +84,9 @@ GLImageBox::~GLImageBox()
// Set up the OpenGL rendering state
void GLImageBox::initializeGL()
{
qglClearColor( Qt::black ); // Let OpenGL clear to black
QPalette p = this->palette();
qglClearColor(p.color(this->backgroundRole())); // Let OpenGL clear to background color
//qglClearColor(Qt::black); // Let OpenGL clear to black
static bool init = false;
if (!init) {
init = true;