Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    PyQt: the old style signals are not working

    Language Bindings
    2
    3
    3073
    Loading More Posts
    • 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
      xolve last edited by

      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 Reply Quote 0
      • F
        Franzk last edited by

        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 Reply Quote 0
        • X
          xolve last edited by

          Thanks its working now :)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post