Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QDockWidget white after move it

QDockWidget white after move it

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 575 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
    debian
    wrote on last edited by
    #1

    Hello!
    I use qt-5.5.1 x64.
    For output images I use QOpenGLWidget subclass on QDockWidget.
    After start application I see correct image on QDockWidget, but if I move it - I see only white space.
    How can I solve this problem.
    Thank you and excuse my bad english.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      N.Sumi
      wrote on last edited by N.Sumi
      #2

      @debian

      -->> After start application I see correct image on QDockWidget, but if I move it - I see only white space.
      but if i remove means removing image from Dockwidget or total Dock from GUI?

                    What you are expecting to there after removing image from QDockWidget? 
                    Try this: If you are using QOpenGLWidget, you can set the background color using this 
                     f->glClearColor(0.0f, 0.0f, 0.0f, 0.0f); //gives you black 
      

      If it only image, you can use Qpainter instead of QOpenGLWidget.

      D 1 Reply Last reply
      1
      • N N.Sumi

        @debian

        -->> After start application I see correct image on QDockWidget, but if I move it - I see only white space.
        but if i remove means removing image from Dockwidget or total Dock from GUI?

                      What you are expecting to there after removing image from QDockWidget? 
                      Try this: If you are using QOpenGLWidget, you can set the background color using this 
                       f->glClearColor(0.0f, 0.0f, 0.0f, 0.0f); //gives you black 
        

        If it only image, you can use Qpainter instead of QOpenGLWidget.

        D Offline
        D Offline
        debian
        wrote on last edited by
        #3

        @N.Sumi
        Thank you for your reply!
        Unfortunately I can't use QPainter because it very slow.

        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