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

QToolbox remove item

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

    Two questions in one I guess,

    I have a QToolbox and in every item in the toolbox I have a QTextEdit.
    I would like to remove one item from the toolbox and delete this items QTextEdit from memory.

    I have tried toolBox.removeItem(indexNum) but nothing happens?

    To delete the QTextEdit I have tried close() and destroy() but somehow its still there eventhough its not visible.

    Thank you

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jake007
      wrote on last edited by
      #2

      Try first hiding it ( setHidden(true)) and then remove it.
      Or try to re-render the window.


      Code is poetry

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobbyd
        wrote on last edited by
        #3

        Thanks Ant Farmer, with the textEdit it worked fine with setHidden.
        removeItem(index) on toolbox also works.

        Cheers

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          And then just delete the item.

          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