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 delete this wighet created by QWidget::createWindowContainer
Qt 6.11 is out! See what's new in the release blog

how to delete this wighet created by QWidget::createWindowContainer

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.1k 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.
  • J Offline
    J Offline
    jimfar
    wrote on last edited by
    #1

    every time i delete this wighet created by QWidget::createWindowContainer,it will crash somehow or other

    JKSHJ 1 Reply Last reply
    0
    • J jimfar

      every time i delete this wighet created by QWidget::createWindowContainer,it will crash somehow or other

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      @jimfar said in how to delete this wighet created by QWidget::createWindowContainer:

      every time i delete this wighet created by QWidget::createWindowContainer,it will crash somehow or other

      1. Does it help if you use deleteLater() instead of delete?
      2. What do you put inside the container?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Moderators Qt Champions 2024 Qt Champions 2022 Qt Champions 2017
        wrote on last edited by
        #3

        @jimfar said in how to delete this wighet created by QWidget::createWindowContainer:

        createWindowContainer

        container takes the ownership of the window. You are not supposed explicitly delete the object. As suggested already by @JKSH use deleteLater or leave it. Container will take care of deleting it.

        Dheerendra
        @Community Service
        Certified Qt Specialist
        https://www.pthinks.com

        1 Reply Last reply
        2
        • J Offline
          J Offline
          jimfar
          wrote on last edited by
          #4

          ok thanks for help

          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