Questions tagged [qsignalmapper]

A QSignalMapper is a class from the Qt Toolkit which bundles signals from identifiable senders.

Documentation can be found here (Qt4) and here (Qt5).

25 questions
0
votes
1 answer

QObject::connect fails at runtime, while linking thread's finished-signal to mapper's delateLater-slot

i'm using C++ and Qt4.5.2 (requirement of the target system) in my project. There is a need of a worker thread supplied with additional arguments/parameter, so i did the following (in short with deleted error handling/output): bool _bRetVal =…
0
votes
1 answer

Updating mapping when using QSignalMapper

I have created a QPushButton in the last column of tableview (which contains ip address of the connected clients to my application). With that button I am able to disconnect the connected client in that particular row using button release signal and…
tanmayb
  • 13
  • 6
0
votes
1 answer

Trouble with object-based QSignalMapper

I am trying to set up a signal-slot arrangement in PyQt where the signal transmits a lot of information. I want to use a QObject as a carrier by setting the various information I want to transmit as attributes of the QObject. In theory, this should…
Grav
  • 347
  • 1
  • 2
  • 15
0
votes
2 answers

How to use QSignalMapper to map integers to numerals?

I have problems with a simple application in Qt. The app looks like a simple calculator wtih buttons (digits from 0 to 9). Once a button is clicked application shall display on the application’s output the corresponding number as a digit and as a…
pank_94
  • 13
  • 7
0
votes
1 answer

QThread moveToThread. Synchronization in QThread

I want to write some class which has to work in own thread. I've read this article: http://wiki.qt.io/Threads_Events_QObjects. It advises to move object which has to work in own thread, like: TestClass tst; QThread *thread = new…
Mike
  • 860
  • 14
  • 24
0
votes
1 answer

Qt QSignalMapper is emitting a signal for every item in the map

I have a function that receives a QList of a class I created. Let's call this hypothetical class "Stuff". So, this function receives a QList of Stuff I iterate through the QList, and depending on the properties of the "Stuff" object, I will…
user751612
  • 163
  • 3
  • 8
0
votes
1 answer

How to map to overload Qt slot

I want to overload a Qt SLOT to either react to an emitted clicked() SIGNAL from a QPushButton or a stateChanged(int) SIGNAL from a QCheckBox (since there is no SIGNAL that emits when the checkbox is checked only). So these are my two SLOTs. void…
tobilocker
  • 891
  • 8
  • 27
0
votes
0 answers

QSignalMapper gives me a Segmentation fault

I want to write a method that creates a button and connects it to a slot that takes a string: void Widget::createButton(const char *member) { QPushButton *button = new QPushButton(this); QSignalMapper *signalMapper = new…
tobilocker
  • 891
  • 8
  • 27
0
votes
0 answers

QSignalMapper does not trigger mapped

I've recently encoutered a problem with QSignalMapper. I can't get the signal mapped (QObject*) to trigger I currently have a qml object keyboard.qml allocated and removed from a c++ class keyboardManager.cpp. In keyboard.qml I have the following…
Nyashes
  • 652
  • 4
  • 22
0
votes
1 answer

QSignalMapper does not update parameter after choosing file

I'm making an application which will be able to program my board. I would like to select file via file dialog and upload board with selected file by upload button. I have two class to it: MyFileDialog and CommandProcess. I connected upload button…
sochinho
  • 87
  • 1
  • 6
1
2