Questions tagged [qt-connection]

23 questions
0
votes
1 answer

Qt: QTimer create an unwanted loop

I'm reading and plotting data from a serial port using Qt. I'm trying to create a timeout with the QTimer class, who sends in the function "lettura()". It works one time and after creating a loop inside that, is there some way to get out from that…
0
votes
1 answer

How to connect QObbject (QPushButton) to a method from other class?

I'm currently working on a project that needs the connection between a QPushButton of a Qwidget class (window) and a void method from a "classical" class. I've tried to connect them with all the solution that I've read but none works…
Lars
  • 11
  • 1
0
votes
3 answers

No such slot when connecting widget signal with parent widget slot

I have the following classes: class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QStringList pluginsToStart, QWidget *parent = 0); ~MainWindow(); // some other stuff public slots: void…
M F
  • 323
  • 1
  • 3
  • 15
0
votes
1 answer

QT Connect QNetworkReply SIGNAL finished() not firing

I had a look at this link and except the signal spy and debugging i tried at least everything. I took the example from this site. I haven't set up the debugger for now. My problem is that i want to fire a custom slot and nothing is happening. I…
Eggi
  • 170
  • 1
  • 15
0
votes
2 answers

Python qt4 - passing arguments in QtCore.QObject.connect

I want to react to a mouse click on a QLabel. To achieve this I have redefined the method mouseReleaseEvent of QLabel. I want to pass two arguments to the slot: the QtGui.QMouseEvent an ID of the clicked QLabel But I can only pass one parameter.…
pythonic
  • 3
  • 1
  • 3
0
votes
1 answer

connect from a QTab (in a QTabWidget) back to QMainWindow

The main part of my application is a Systray-Menu. For maintenance there should be a normal GUI. My problem is that now I have to create two Signal/Slot-Connections back to the main window from each tab. This is for minimizing the GUI and to update…
-1
votes
1 answer

Pass multiples arguments to a slot Qt

I'm using a Qt horizontal slider and I want to connect its valueChanged signal to a slot I defined. However I need to access a specific member inside this slot to modify a variable thanks to the int I set with the slider. Until now, my connect line…
user17429375
-1
votes
1 answer

Creating QT UI for multiple tabs and initial combobox

My setup is as follows: main.cpp projectQt.cpp projectQt.h tab1.h tab1.cpp tab2.h tab2.cpp projectQt.ui ui_projectQt.h I want to create a project with a UI file. In the UI file, I have three comboBoxes and two Apply buttons and in the tab1.cpp and…
CiTi
  • 1
  • 1
1
2