Questions tagged [slots]

`__slots__` is a python language feature to reduce size of object instances by dropping the builtin dictionary every python instance normally features in order to support dynamic assignment of attributes and replacing it with a fixed set of attributes (the 'slots').

__slots__ is a python language feature to reduce size of object instances by dropping the builtin dictionary every python instance normally features in order to support dynamic assignment of attributes and replacing it with a fixed set of attributes (the 'slots'). See: https://docs.python.org/2/reference/datamodel.html#slots

306 questions
-1
votes
1 answer

Qt emit signal from a class to class

I've tried to emit a custom signal login() from my loginmanager class to the mainwindow. The signal is fired on the loginButtonClicked slot, and to my understand on the signal/slot mechanism, it should be able to capture any signal fired event and…
ReverseEngineer
  • 529
  • 1
  • 5
  • 18
-1
votes
1 answer

Qt Slots and Signals confusion

I'm working now with Qt; I'm a bit mystified by their implementation of slots and signals (using 5.4 but could use old syntax too). I've looked all over for a good explanation of this part, but it's eluding me. I used to create a slot and signal…
LPTab
  • 11
  • 3
-1
votes
1 answer

QThread, signals and slots

Having a problem when trying to render a Camera Preview buffer into an opengl renderer in BB10 (but relevant to any platform). My renderer is just a basic open gl renderer that goes through a relatively infinite render loop however im looking to…
James
  • 93
  • 1
  • 1
  • 5
-3
votes
1 answer

Do Python's slots contain methods?

Let's say I do this class: class Person: __slots__ = ["j"] def __init__(self): self.j = 1 def hello(self): print("Hello") Is the method hello in the slots?
user3313574
-5
votes
1 answer

error from qt unresolved C2019

I write in header file private slots and the compiler gives an error: d:\qtproject\new123\mainwindow.h:31: error: C2059: syntax error : 'public' Please help me. I changed to public but no difference.When I clear 'public/private slots' no error comes…
kawake123
  • 53
  • 8
1 2 3
20
21