2

I am using PyQt to make a GUI for a circuit simulator, and am programmatically creating and deleting tabs (i.e. the user clicks on a button, and a new tab is added to a QTabWidget).

This is already working (I drew a QFrame in Qt Creator and, in my code, add it as a new tab), but I need to refer to a widget which is inside a specific tab (e.g. a QwtPlot inside the 3rd tab). How can this be achieved?

4

1 に答える 1

3

を呼び出して、特定のタブからウィジェットを取得できますQTabWidget.widget(index)

于 2012-02-26T18:53:41.310 に答える