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. QOpenGLWidget no longer "paintGl"...
Forum Updated to NodeBB v4.3 + New Features

QOpenGLWidget no longer "paintGl"...

Scheduled Pinned Locked Moved Unsolved General and Desktop
qopenglwidget
8 Posts 2 Posters 1.8k 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
    Dariusz
    wrote on 13 Jun 2019, 20:18 last edited by Dariusz
    #1

    This is fun. Anyway, my openGL widget decided to no longer call paintGL... I have literally no idea what to do. What do I do ?

    How do I even trouble shoot it ?

    The openGLWidget is just black.

    Not only that... every other openGL app I did is also black! What on earth is goin on...

    TIA

    EDIT. if I force paintOpenGl. it paints, its as if I managed to globally disable even loop for openglwidget... O_O

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 Jun 2019, 21:44 last edited by
      #2

      Hi,

      Does the same happen with one of Qt OpenGL examples ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply 14 Jun 2019, 04:03
      0
      • S SGaist
        13 Jun 2019, 21:44

        Hi,

        Does the same happen with one of Qt OpenGL examples ?

        D Offline
        D Offline
        Dariusz
        wrote on 14 Jun 2019, 04:03 last edited by Dariusz
        #3

        @SGaist OMG they broke too !!!

        Cube example is black.

        boxes say :-1: error: This example requires Qt to be configured with -opengl desktop Woah ! I've read on it, but I also read that qt is made with angle and I'd have to recompile it fro mscratch to run under that.

        This is crazy, everything worked for 1 year and now all is broken... OH my ! I installed 5.12.3 to start testing it, did that break up my openGl?! :- (((( I've uninstalled it yesterday and went back to 5.12.0 but looks like its all broken :- (

        More to that, this is getting more nuts.

        So I now set a timer and call paintGL to get it paiting, I cant call update() because it does nothing!

        Not only that, since my widget is inside a dockwidget, every time I detach-reattach the widget/ change its location. Entire widget gets wiped-reinitialized from scratch!!! :OOOOOOOO

        Edit2
        I've uninstalled QT & reinstalled latest version. Now I get.

        ######
        			FATAL: ASSERT: "ctx && fbo" in file kernel\qopenglwidget.cpp, line 872
         (kernel\qopenglwidget.cpp:872, (null))
        ######
        

        Some progress... I managed to "see" my openGL widget, esentially I did not add it to any layout, just did widget->show().
        However, if I add it to QDockWidget, when I drag the dock widget, my openGL widget gets destroyed. Its priceless, is that a feature? :- ) How do I disable it? ^^

        Edit 3
        Ok its a can of worms. I need to re-think my entire openGL implementation. I guess I should have parented it tothe right widget at the start and not just have it floating around during R&D process. Now the entire idea is broken sigh.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 Jun 2019, 21:23 last edited by
          #4

          Qt now has dynamic backend selection so you can tell your application which one to use.

          Did you had any Windows / Graphics Card driver update ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply 15 Jun 2019, 14:09
          3
          • S SGaist
            14 Jun 2019, 21:23

            Qt now has dynamic backend selection so you can tell your application which one to use.

            Did you had any Windows / Graphics Card driver update ?

            D Offline
            D Offline
            Dariusz
            wrote on 15 Jun 2019, 14:09 last edited by
            #5

            @SGaist I've updated qt to latest and drivers. Everything "slowly" started to work again... magic...

            1 Reply Last reply
            1
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 15 Jun 2019, 20:04 last edited by
              #6

              What do you mean by "slowly" ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              D 1 Reply Last reply 20 Jun 2019, 17:30
              0
              • S SGaist
                15 Jun 2019, 20:04

                What do you mean by "slowly" ?

                D Offline
                D Offline
                Dariusz
                wrote on 20 Jun 2019, 17:30 last edited by
                #7

                @SGaist Just that apps started to render again. No idea why, I guess a full driver/qt reinstall did trigger something and made it all work.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 20 Jun 2019, 20:30 last edited by
                  #8

                  Good !

                  Then please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has worked :)

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  2/8

                  13 Jun 2019, 21:44

                  topic:navigator.unread, 6
                  • Login

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