Results 1 to 4 of 4

Thread: PyQt4 Signal to PyQt5 Signal Convert?

  1. #1
    Join Date
    Sep 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default PyQt4 Signal to PyQt5 Signal Convert?

    Qt Code:
    1. self.emit(SIGNAL("selectedInfoChanged(int, QString, int, QString)"), packages, packagesSize, extraPackages, extraPackagesSize)
    2. self.emit(SIGNAL("selectedInfoChanged(QString)"), unicode(e))
    To copy to clipboard, switch view to plain text mode 

    pyqt5 also how I do it? Sorry, my English is weak.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: PyQt4 Signal to PyQt5 Signal Convert?

    something like
    Qt Code:
    1. self.selectedInfoChanged.emit(value)
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Sep 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: PyQt4 Signal to PyQt5 Signal Convert?

    Qt Code:
    1. selectedInfoChanged = pyqtSignal() # ???
    To copy to clipboard, switch view to plain text mode 

    Unclear how many will take the argument?

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: PyQt4 Signal to PyQt5 Signal Convert?

    I expect no arguments.

    For your four argument signal
    Qt Code:
    1. selectedInfoChanged = pyqtSignal(int,str,int,str)
    To copy to clipboard, switch view to plain text mode 
    http://pyqt.sourceforge.net/Docs/PyQ...ls_slots.html#

Similar Threads

  1. Replies: 1
    Last Post: 14th August 2014, 18:08
  2. Replies: 7
    Last Post: 20th March 2014, 08:43
  3. Replies: 6
    Last Post: 4th March 2014, 16:09
  4. Replies: 3
    Last Post: 2nd April 2011, 14:13
  5. PyQt4 QGraphicsView and 'pressed' signal
    By splondike in forum Newbie
    Replies: 2
    Last Post: 8th October 2009, 14:34

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.