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

No such Slot/Signals (Qt)

Object::connect: No such signal RollsRoyceTab::signal_aValueChange(int aValue) In the following class: class RollsRoyceTab : public QWidget { Q_OBJECT public: RollsRoyceTab(QWidget *parent = 0); public slots: void…
Deng Won
  • 11
  • 5
-1
votes
1 answer

Time slot selection and displaying in rails

Guys please give suggestions on how to get the result as you can see in the pic2 when I give input as in pic1. Please help me, I am new to rails and need your suggestion. Thanks in advance http://imageshack.us/photo/my-images/593/11072918.jpg/…
Sivanand Kheti
  • 2,209
  • 1
  • 17
  • 29
-1
votes
1 answer

Creating a custon slot for a QMenu

I'm new in Qt World) I created a new Qt Application in MSVC 2008 Using Qt Creator added controls I need and one of them is QMenuBar As I understend the equivalent of CallBack(C#) is Slot in Qt. I culdn't find any information how to create a custom…
Ruslan F.
  • 5,498
  • 3
  • 23
  • 42
-2
votes
1 answer

How to stop the drum of the draw machine

I have very simple slot casino game with five rolls and three rows. I am stuck with a problem that I have not been able to solve for several hours. It's about the roll animation. I have the following assumption: The roll has at least 10 symbols,…
progrtoo
  • 1
  • 1
  • 1
-2
votes
1 answer

PyQt5 - link Text in label with an external condition

SOLVED!! I used a Qtimer to interrupt QMainWindow each one second and call to "getStartStatus" method: self.loadingLabel = QLabel('Starting...', self) self.loadingLabel.setGeometry(900, 700, 400, 200) …
-2
votes
1 answer

Vue.js 3 - inserting component into slot

What I'm trying to achieve I'm trying to pass Component into the slot. The question/information How do I pass the Component into the slot so that It will be rendered? This works fine as long as I pass strings / plain html. Additional question If…
Volmarg Reiso
  • 437
  • 4
  • 11
-2
votes
1 answer

I have to loop a specific block of code (Python)

I have to create a slot machine sort of in Python that displays numbers 0 - 5 and if the player gets a specific sequence of numbers they win a specific amount of money. I have created all the code to score the player and print it but I can't loop…
Arjun
  • 1
  • 2
-2
votes
1 answer

Qt (4.8) simplest way to call slot with AutoConnection behavior

I have something like this: class Thing : public QObject { ... public slots: void doSomething (); ... }; I then have an object that manages Things, like this: class ManyThings : public QObject { ... public: void…
Jason C
  • 38,729
  • 14
  • 126
  • 182
-5
votes
1 answer

Was writing code for a slot machine in java and and want to split into 3 files but it doesnt work

Dont know what isnt working //slot machine class package slotMachine; //import java.util.Arrays; import java.util.Random; # public class SlotGame { private int winCreadits=0; private boolean winState; static int slotMidPosition= 0; …
-5
votes
1 answer

How to understand this doc

This is from the Python docs. I don't understand this, can someone give some examples? If a class defines a slot also defined in a base class, the instance variable defined by the base class slot is inaccessible (except by retrieving its…
user2352151
  • 81
  • 1
  • 5
1 2 3
29
30