方法一,在主窗口加上:
    QSurfaceFormat format;
    format.setRenderableType(QSurfaceFormat::OpenGLES);
    format.setAlphaBufferSize(8); // 设置透明度缓冲区大小
    format.setSwapInterval(1); // 设置垂直同步间隔
    QSurfaceFormat::setDefaultFormat(format);
    setAttribute(Qt::WA_TranslucentBackground, true);
    setAttribute(Qt::WA_NoSystemBackground, true);
方法二,在main函数加
    QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL, true);
 以上  都不好用。还有好的解决办法嘛? 环境如下:
     QT5.7.1 + java1.8 + android SDK 24.41 + android NDK r12b -windows