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. Initialize QOpenGLWidget without showing ?
Forum Update on Monday, May 27th 2025

Initialize QOpenGLWidget without showing ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qopenglwidget
4 Posts 2 Posters 804 Views
  • 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 27 Jan 2019, 07:20 last edited by
    #1

    Hey

    I'm struggling with the openGLWidget. Essentially the widget only gets initialized when it is "shown". But that process for me is too late as I'd like to have it initialized before showing with all the data that I want to display.

    The current workflow is to initializeGL, which sets context/passes it to sceneManager class which then loads default nodes in to the context. But that can only happen when show() is called on the widget because that is linked to how the initializeGL is being called in 1st place.

    So how can I work around it if possible to initialize the widget before showing it?

    Regards
    Dariusz

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 27 Jan 2019, 22:33 last edited by
      #2

      Hi,

      What would be needed to be initialised exactly ?

      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
      • D Offline
        D Offline
        Dariusz
        wrote on 2 Feb 2019, 10:28 last edited by
        #3

        Context &openGLFunctions I think so that they can be pre-loaded with data before showing up on window.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 2 Feb 2019, 21:08 last edited by
          #4

          What kind of data are these ?

          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

          3/4

          2 Feb 2019, 10:28

          • Login

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