qt-signals Questions

5

Solved

How to declare a Qt signal in an abstract class / interface when the implementing class is already derrived from QObject/QWidget? class IEmitSomething { public: // this should be the signal know...
Footwear asked 30/7, 2013 at 9:40

2

Solved

Is it possible to pass variables through slots so I can print out certain text? Trying to pass variable 'DiffP' which is defined in another function to slot. 'DiffP' changes based on which file is...
Willodeanwilloughby asked 13/7, 2017 at 21:12

5

Solved

There is an object of class QNetworkReply. There is a slot (in some other object) connected to its finished() signal. Signals are synchronous (the default ones). There is only one thread. At some ...
Capacitate asked 3/2, 2011 at 15:39

4

Solved

I am attempting to send a structure via signals/slots between two threads, my signals/slots are connected properly and I have been able to send QStrings containing parts of my data but now I need t...
Lenticular asked 14/9, 2016 at 16:57

8

Can Qt signals be public, protected or private? Can I create internal signals, which are seen only inside the class? Update: I have a class with some internal signals. How can I make those signals ...
Harlotry asked 26/1, 2010 at 22:32

6

Solved

OR other way to formulate my question (though it didn't solve my problem): 'QObject::QObject' cannot access private member declared in class 'QObject' I need SIGNALs and SLOTS func...
Rizo asked 21/9, 2011 at 15:38

2

Solved

The signal/slot mechanism in Qt, is a static mechanism. The classes have to be preprocessed by the moc compiler. Now I want to create signals and slots dynamically at run-time. I already have a wor...
Azeria asked 25/8, 2013 at 10:0

2

Solved

Is it safe to emit a signal on an object from another thread (if the slot is connected as QueuedConnection)? I couldn't find a specific piece of documentation that would mention this, the most rele...
Berkow asked 7/9, 2018 at 9:6

4

Solved

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 clie...
Aerophagia asked 25/6, 2014 at 13:30

3

I am building a simple application to open up a folder of data and plot that data. Importing the data updates a QTreeWidget that shows which signals are available to plot. Ex: The QTreeWidget is...
Longdrawnout asked 17/11, 2014 at 0:33

2

Solved

All i want to do is call a method when the value of a qspinbox and a doublespinbox are changed. I do not need the actual value from the spinbox being changed, i just want it to trigger the calling...
Risteau asked 2/9, 2019 at 14:51

3

Solved

I've found a few similar questions on this but these appear to refer to cases where a message box is used in the slot handler. In my case I am a bit stuck as I am getting the editFinished signal tw...
Brassica asked 6/11, 2014 at 14:44

3

Solved

I repeatedly see people having problems with slots not being called. I would like to collect some of the most common reasons. So maybe I can help people and avoid a lot of redundant questions. Wha...
Rotarian asked 17/10, 2014 at 9:37

1

Solved

I want to send dictionaries, containing data that I need to use to dynamically create qml objects, from a PySide2 class to a QML interface and since I need to do it in response to certain events, I...
Acierate asked 19/2, 2019 at 14:21

8

Solved

After reading some articles like this about Qt Signal-Slot communications I still have a question concerning the queued connection. If I have some threads sending signals all the time to each othe...
Jakoba asked 1/1, 2014 at 8:52

3

Solved

Qt documentation states that signals and slots can be direct, queued and auto. It also stated that if object that owns slot 'lives' in a thread different from object that owns signal, emitting su...
Phlebosclerosis asked 12/3, 2009 at 11:38

1

Solved

I have a function which has default keyword arguments. I'm having trouble implementing this as I keep getting an error that if my signal has two arguments then I need to pass both arguments. Is the...
Singultus asked 1/11, 2018 at 20:1

5

Solved

I am porting a Linux app to Windows written in Qt. The application needs to save some settings before closing. On Linux, we can do that by signal handlers for SIGTERM etc. How can I implement the s...
Rafat asked 5/10, 2013 at 9:2

2

Solved

I would like to embed Python interpreter 3.4 into a Qt 5.2.1 application (64-bit). However I'm having build issues, I mean when I include Python header in the main.cpp it compiles fine. #include &...
Wombat asked 14/4, 2014 at 19:33

3

Solved

I checked other similar questions and tried their solutions but they don't work for me. I'm basically trying to make a http client that only makes post requests. In order to do this, I need to con...
Banns asked 10/11, 2013 at 6:13

2

I have a C++ class and I made it possible to be able to create it in QML. Then I have a signal in QML which has an argument representing this object. I am using the QtQml.StateMachine and I am catc...
Eth asked 28/3, 2016 at 14:33

1

I used below syntax in Qt5 according to new connect syntax to avoid type mismatches of slot and signals for a a QListWidget with checkable items. connect(item, &QListWidget::itemChanged,this ,...
Swat asked 2/1, 2018 at 11:3

2

Solved

In my form I have a QListWidget which contains checkable QListWidgetItems. I'm looking for a way to capture the event of a QListWidgetItem being checked/unchecked. I don't see any such signal exist...
Plafond asked 23/11, 2010 at 5:2

1

Solved

According to following post an emitted signal is served, only once the currently executing slot completes. Wait for a SLOT to finish the execution with Qt I have a client-server communication app ...
Ciaphus asked 5/10, 2017 at 1:49

2

Solved

I have a class server for which I have created a signal joined(QString name). I call it in a function called join(QString name), however I'm getting the error Server.o: In function Server::join(...
Neomineomycin asked 16/11, 2012 at 2:1

© 2022 - 2025 — McMap. All rights reserved.