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
314
votes
3 answers

How to properly document S4 class slots using Roxygen2?

For documenting classes with roxygen(2), specifying a title and description/details appears to be the same as for functions, methods, data, etc. However, slots and inheritance are their own sort of animal. What is the best practice -- current or…
Paul 'Joey' McMurdie
  • 7,295
  • 5
  • 37
  • 41
88
votes
4 answers

R: what are Slots?

Does anyone know what a slot is in R? I did not find the explanation of its meaning. I get a recursive definition: "Slot function returns or set information about the individual slots of an objects" Help would be appreciated, Thanks - Alley
user573347
  • 975
  • 1
  • 7
  • 11
82
votes
4 answers

How delete and deleteLater works with regards to signals and slots in Qt?

There is an object of class QNetworkReply. There is a slot (in some other object) connected to its finished() signal. Signals are synchronous (the default ones). There is only one thread. At some moment of time I want to get rid of both of the…
stach
  • 2,135
  • 2
  • 20
  • 22
25
votes
2 answers

Qt connect two signals together using QueuedConnection

Qt documentation states that it is possible to connect two signals together: It is even possible to connect a signal directly to another signal. I tried: connect(x, SIGNAL(S()), y, SIGNAL(func())); and it works as mentioned, but Qt documentation…
dashesy
  • 2,596
  • 3
  • 45
  • 61
24
votes
1 answer

Qt5 new signal to lambda connections memory leak

The new Qt5 signals and slots syntax allows us to connect signals not only to slots, but also to plain old functions and functors/lambdas. Now the problem is, that lambdas are essentialy objects with () operator, and when you connect signals to…
Sigil
  • 243
  • 2
  • 6
19
votes
6 answers

How to use SIGNAL and SLOT without deriving from QObject?

OR other way to formulate my question (though it didn't solve my problem): 'QObject::QObject' cannot access private member declared in class 'QObject' I need SIGNALs and SLOTS functionality in my class, but I assume it is not possible without to…
6e69636b6e616d65
  • 211
  • 1
  • 2
  • 9
15
votes
1 answer

Select all rows of a Vuetify data table with custom table body implementation

I can't figure how to implement the select all option for my data-table using Vuetify v2 when I have a custom implementation for the slot body. Here is a little example: