Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Pyside problem

Pyside problem

Scheduled Pinned Locked Moved Language Bindings
1 Posts 1 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.
  • appollosputnikA Offline
    appollosputnikA Offline
    appollosputnik
    Banned
    wrote on last edited by
    #1

    I have a custom widget which is a chaco plot called
    DefaultPlotWidget

    I have inserted this widget in QGridLayout. Now I want to remove it from QGridLayout how can I type cast it to the actual widget.
    [code]
    widget = self.layout().itemAtPosition(row, self.columns).widget()
    self.layout().removeWidget(widget)
    [/code]
    widget is QWidget not DefaultPlotWidget. How can I type cast it so that the DefaultPlotWidget gets removed..
    Because the border of the DefaultPlotWidget is still there in the QGridLayout, QGridLayout is not updated.

    Please 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