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. Proper removal of objects in a GUI
Qt 6.11 is out! See what's new in the release blog

Proper removal of objects in a GUI

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 671 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.
  • C Offline
    C Offline
    CodaxX
    wrote on last edited by
    #1

    When removing for instance button in the GUI possible slots that I manually added to this button still remains.

    Thats a good thing I guess, as automatic deletion of code could cause problems. However, if knowing that it's safe to delete all code associated with eg. a button, is there an option that automatically could delete everything directly associated with this button?

    Now I manually delete associated slots and declarations.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DerManu
      wrote on last edited by
      #2

      I'd rather not have an IDE guess for me what part of my code is "safe to delete" and what isn't. (With intelligent heuristic algorithms, I suspect some people could lose their entire codebase this way...)

      So no, luckily, there is no such feature in QtCreator.

      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