QGlWidget全屏无菜单 [英] QGlWidget fullscreen no menu

查看:126
本文介绍了QGlWidget全屏无菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,它是单个QGlwidget,并在需要时创建了右键单击QMenu.
数据绘制在重写的paintEvent()

I have an app that is a single QGlwidget with a right-click QMenu created when needed.
The data is drawn in an overridden paintEvent()

但是在全屏模式下不会显示菜单. 我最好将QGraphicsScene作为父窗口,将QGlWidget作为唯一的子窗口吗?

But in fullscreen mode the menu isn't displayed. Am I better having a QGraphicsScene as the parent window and a QGlWidget as the sole child?

推荐答案

此Qt的错误列表上的错误报告,似乎与您的问题有关.该错误将其描述为NVidia卡可能的驱动程序问题.看起来也有解决方法.

There is this bug report on Qt's bug list which seems related to your issue. The bug describes it as a possible driver issue with NVidia cards. It also looks like there is a workaround.

这篇关于QGlWidget全屏无菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆