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

How can I connect signals and slots of different objects in Qt?

i have a doubt in QT c++ Suppose this is the main.cpp #include "head.h" #include "tail.h" int main() { head *head_obj = new head(); tail *tail_obj = new tail(); //some code } here is the head.h class head:public QWidget { Q_OBJECT /*…
wenn
  • 31
  • 1
  • 2
3
votes
1 answer

How to use the element twice?

I'm using Svelte, and I want to create a component that will allow me to do something like this: CodeDisplay.html should look something like…
Justin
  • 623
  • 1
  • 10
  • 24
3
votes
1 answer

Insert named slot inside v-for loop vuejs

Does anyone know how to insert a named slot inside a loop? I've got for example this code: Children
And the parent is like:
stefano capra
  • 159
  • 5
  • 13
3
votes
1 answer

Unity infinite loop of moving sprites (Slot Machine reel)

I'm trying to make a slot machine prototype. My goal is to simulate(programmatically) symbols movement. I want my symbols move down and when each symbol go out of game field, it should be moved to the frame's top again. Here is my code: public class…
Victor
  • 51
  • 1
  • 6
3
votes
2 answers

Qt connect doesn't recognize with lambda expression

I'm designed a QTableWidget with QPushButton, I would like to connect these buttons with a slot to hide some rows. I'm using a lambda expression to pass a number of a row. But the compiler doesn't recognized this expression…
Liscare
  • 336
  • 2
  • 14
3
votes
1 answer

How to add slot in repeat dom in polymer 2

i want to create a layout element, so i write the template like this