[PyQt] Fwd: Newbie QMainWindow tips
fpp.gsp at gmail.com
Thu Sep 16 18:28:55 BST 2010
Sorry, did it again ! :-)
---------- Forwarded message ----------
From: fpp <fpp.gsp at gmail.com>
Date: Thu, Sep 16, 2010 at 7:27 PM
Subject: Re: [PyQt] Newbie QMainWindow tips
To: Eric Frederich <eric.frederich at gmail.com>
On Thu, Sep 16, 2010 at 7:24 PM, Eric Frederich
<eric.frederich at gmail.com> wrote:
> So if I connect the tab bar's currentChanged(int) signal to a dock widget's
> method, where does the dock widget get the data from?
> Would the dock widget instance need to have a pointer to the the tab widget
> or to something else?
> This is what I'm confused about.
There is always a way :-)
Easiest here is for the dockwidget to query the tabwidget for its
current index (active tab), there is a method for that.
More information about the PyQt