qt-signals

No matching function for QObject::connect

不打扰是莪最后的温柔 提交于 2020-05-26 11:12:17
问题 I'm writing a program that send an UDP frame every 10 mS. Here's how my program is supposed to work : I've got a client class : //Constructor clientSupervision::clientSupervision() { } void clientSupervision::sendDataUDP(){ //Create a frame and send it ... } void clientSupervision::sendDataUDPTimer(int timer){ QTimer *tempsEnvoieTrameSupervision = new QTimer();//Create a timer tempsEnvoieTrameSupervision->setInterval(timer);//Set the interval //Mise en place des connections QObject::connect

No matching function for QObject::connect

大城市里の小女人 提交于 2020-05-26 11:12:16
问题 I'm writing a program that send an UDP frame every 10 mS. Here's how my program is supposed to work : I've got a client class : //Constructor clientSupervision::clientSupervision() { } void clientSupervision::sendDataUDP(){ //Create a frame and send it ... } void clientSupervision::sendDataUDPTimer(int timer){ QTimer *tempsEnvoieTrameSupervision = new QTimer();//Create a timer tempsEnvoieTrameSupervision->setInterval(timer);//Set the interval //Mise en place des connections QObject::connect

PyQt5 can't delete flag WindowStaysOnTopHint under Ubuntu 18.04

谁都会走 提交于 2020-03-05 07:31:42
问题 I'm trying to make a button which would place window on top of others. Using recommends from other questions, I put in my class setWindowFlags(self.windowFlags() | QtCore.Qt.WindowStaysOnTopHint) to set and setWindowFlags(self.windowFlags() & ~QtCore.Qt.WindowStaysOnTopHint) to delete flag. It sets the flag, but when i change the button state, it still has that flag enabled. Here is code example: from PyQt5 import QtWidgets, QtCore import sys class widget(QtWidgets.QWidget): def __init__(self

QMetaObject::invokeMethod doesn't find the method

青春壹個敷衍的年華 提交于 2020-01-24 23:10:35
问题 I want to use QMetaObject::invokeMethod to call a method of an object (later it will run in another thread and then invokeMethod comes in handy). I use the Qt 4.8 bindings of PySide 1.2.1 on Python 3.3. The full example is: from PySide import QtCore class Tester(QtCore.QObject): def __init__(self): super().__init__() def beep(self): print('beep') if __name__ == '__main__': t = Tester() QtCore.QMetaObject.invokeMethod(t, 'beep', QtCore.Qt.AutoConnection) And the output is: QMetaObject:

Signal emitting a structure

末鹿安然 提交于 2020-01-24 13:12:10
问题 This question is in my mind for many days but i got cleared till now if i try to send a signal of a structure say struct radarStruct { unsigned char *Data; unsigned int rate; unsigned int timeStamp; float timeSec; }; shall i emit the signal like signals: void radarGeneratorData(const radarStruct &); or signals: void radarGeneratorData(radarStruct *); More: what about the unsigned char *Data , whether the signal will make a deep copy of it ?? similar for a unsigned char *data how i can send

Signal emitting a structure

不羁的心 提交于 2020-01-24 13:12:08
问题 This question is in my mind for many days but i got cleared till now if i try to send a signal of a structure say struct radarStruct { unsigned char *Data; unsigned int rate; unsigned int timeStamp; float timeSec; }; shall i emit the signal like signals: void radarGeneratorData(const radarStruct &); or signals: void radarGeneratorData(radarStruct *); More: what about the unsigned char *Data , whether the signal will make a deep copy of it ?? similar for a unsigned char *data how i can send