Results 1 to 3 of 3

Thread: PyQt QTabWidget

  1. #1
    Join Date
    Dec 2008
    Beans
    2

    Question PyQt QTabWidget

    I have read the documentation and it states there exists a signal currentChanged for QTabWidget. I have connected it using

    QtCore.QObject.connect(self.ui.mainTabWidget,QtCor e.SIGNAL("currentChanged()"), self.refreshTab)

    I have defined refreshTab:

    def refreshTab(self):
    print "here"

    and its not emitting the signal when I click on any tab.

    How do I detect the tab change event, am I missing something.

    Using Qt 4.4.3 and installed PyQt-x11-gpl-4.4.4, Ubuntu environment.

    Thanks for any help,

  2. #2
    Join Date
    Dec 2008
    Beans
    2

    Angry Re: PyQt QTabWidget

    Has anyone seen this before. I done some browsing and found in an older version there where bugs with the QTabWidget, but was fixed in the version I am running. This is the only signal I see for the QTabWidget.. are there any others that detect click tab event?

  3. #3
    Join Date
    May 2008
    Location
    Cleveland, Ohio
    Beans
    68
    Distro
    Ubuntu Karmic Koala (testing)

    Re: PyQt QTabWidget

    A little late in response, sorry.

    you might want to have a look at this post: http://mail.python.org/pipermail/pyt...ry/422958.html

    hopefully this sheds some light.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •