Questions tagged [slot]

slot is a method callback used to handle a signal in some gui frameworks like QT

slot is a method callback used to handle a signal in some gui frameworks like QT - see for instance: http://doc.qt.io/qt-4.8/signalsandslots.html

445 questions
10
votes
4 answers

SIGNAL & SLOT macros in Qt : what do they do?

I'm a beginner in Qt and trying to understand the SIGNAL and SLOT macros. When I'm learning to use the connect method to bind the signal and slot, I found the tutorials on Qt's official reference page uses: connect(obj1, SIGNAL(signal(int)), obj2,…
Ryan
  • 373
  • 4
  • 15
9
votes
2 answers

How do I select all slotted by name?

I am dealing with this situation... and an implementation like
Thing 1
Thing 2
Jackie
  • 21,969
  • 32
  • 147
  • 289
9
votes
1 answer

How to pass QObject as argument from signal to slot in Qt connect

My original code passed a QStringList from the signal to the slot and then returned a QList . Everything worked fine but I needed to change both the QStringList and QList into 2 different subclassed QObjects. Since then I have been receiving errors…
luxtor
  • 115
  • 1
  • 2
  • 4
8
votes
1 answer

Qt send signal to different thread

I have searched SO for this question, but they were a bit different than mine. My problem is that I dont want to receive a signal from another thread, but I want to send one. Receiving works in my app, but when trying to send, I am getting error…
Łukasz Przeniosło
  • 2,725
  • 5
  • 38
  • 74
8
votes
3 answers

pyqt disconnect slots. New style

I assign a slot with this. ... self.query = QtGui.QLineEdit(self) self.query.textChanged.connect(lambda: self.makeThread(self.googleSearch())) self.query.returnPressed.connect(lambda: self.launchNavigator(1)) ... but how can I…
fpilee
  • 1,918
  • 2
  • 22
  • 38
7
votes
2 answers

How to find if a signal is connected to anything

Is there a way to tell if a signal is already connected to a function? i.e I want to see if signals.siSelectionChange is connected to anything signals.siSelectionChange.connect( self.SelAsSiAssets )
Jay
  • 3,373
  • 6
  • 38
  • 55
7
votes
1 answer

How to pass option tags to a custom element as distributed nodes (aka )

I have a web component custom element defined like so.