Does the user have access rights to write to the framebuffer?

QCoreApplication works because the application doesn't try to access the framebuffer.