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. PyQt: the old style signals are not working
QtWS25 Last Chance

PyQt: the old style signals are not working

Scheduled Pinned Locked Moved Language Bindings
3 Posts 2 Posters 3.3k Views
  • 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.
  • X Offline
    X Offline
    xolve
    wrote on last edited by
    #1

    With respect to this question:

    [url]http://stackoverflow.com/questions/5765077/qtwebkit-loadfinished-and-loadprogress-slots-are-never-executed/5765594[/url]

    The connect call as:
    @QObject.connect(web, SIGNAL("loadFinished()"), xprinter.print_page_info)@
    doesn't work.

    But in the answer provided:
    @web.loadFinished.connect(xprinter.print_page_info)@
    This works fine.

    Please tell why.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on last edited by
      #2

      It is more likely that the problem was in the incorrect signature than in the fact that it doesn't work. QWebKit::loadFinished has a bool as argument as stated in the edited post.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xolve
        wrote on last edited by
        #3

        Thanks its working now :)

        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