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 Updated to NodeBB v4.3 + New Features

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 614 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.
  • P Offline
    P Offline
    pmaynard
    wrote on 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

    • Login

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