Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 求教QGLWidget与QWidget一同布局后的闪烁问题
Forum Updated to NodeBB v4.3 + New Features

求教QGLWidget与QWidget一同布局后的闪烁问题

Scheduled Pinned Locked Moved Chinese
2 Posts 2 Posters 4.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DingWei
    wrote on last edited by
    #1

    最近遇到一个问题,麻烦大家帮忙看一下
    在QMaindow下,同时生成QGLWidget和QWidget的对象,使用Layout布局,将Qwidget的对象叠在QGLWidget的对象之上显示,结果发现QWidget的对象中某些控件隐藏或者显示切换时,控件会出现一瞬间的白色闪烁现象,控件改变大小时,也会出现一瞬间的白色闪烁现现象。去除QGLWidget对象后,白色闪烁现象就不再出现了,请问下可能是什么原因造成的?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jiangcaiyang
      wrote on last edited by
      #2

      这当然不行了。因为QGLWidget和QWidget的其它子类的更新方式不一样的。详细来讲,QGLWidget是用OpenGL渲染的,其余的是用Qt paint engine来渲染的。

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved