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. How to bail on the creation and display of 5.1 OpenGL QGLWidget window
Forum Update on Monday, May 27th 2025

How to bail on the creation and display of 5.1 OpenGL QGLWidget window

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 591 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.
  • P Offline
    P Offline
    pmaynard
    wrote on 2 Jul 2013, 20:42 last edited by
    #1

    You have to new the QGLWidget and call the .show() to get the initializeGL, resizeGL, and paintGL methods to fire. What if you run into a problem on the initializeGL method, and want to bail? How can I stop the window from being displayed? I've tried deleting "this", and bad things happened. Is there a clean way to unwind the stack and prevent the resizeGL and paintGL calls from being made?

    I suppose I could make the window invisible, set a timer, and delete it after it is fully initialized. But there must be a better way ...

    1 Reply Last reply
    0

    1/1

    2 Jul 2013, 20:42

    • Login

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