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
6
votes
1 answer

Signal to Slot in QT Creator, where is connect() function?

In QT Creator, design mode, I right-click on a widget and select "Go to slot" and it creates a slot function for one of the widget's signals. I would have thought that this would have generated a connect() function to create this connection,…
6
votes
3 answers

Initializing slots based on other slot values in Common Lisp Object System class definitions

In my class definition, I want to initialize one slot based on the value of another slot. Here is the sort of thing I would like to do: (defclass my-class () ((slot-1 :accessor my-class-slot-1 :initarg slot-1) (slot-2 :accessor my-class-slot-2…
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
6
votes
2 answers

How can I make slot to be filled with multiple same-type objects in R?

Let's say I want to define two classes classes, Sentence and Word. Each word object has a character string and a part of speech (pos). Each sentence contains some number of words and has an additional slot for data. The Word class is straightforward…
Will Beason
  • 3,417
  • 2
  • 28
  • 46
5
votes
4 answers

How get ref from slot in vue 3?

i need to to focus ref with name test1 a set some value which is placed in compontend slot (from outside). Is it possible to do it somehow? I tried to get from $refs or $slots, but failed. App.vue