Qt Connect Signal And Slot With Different Parameters

With

Qt Connect Signal Slot

Hello,
I'm making a Sudoku (solving/generating) program in Qt. Now, I'm just a beginner as a programmer, and I have no experience with Qt. I'm stuck in a strange situation. I want to connect a signal and slot with different parameters.
My grid is made up of an array of QLineEdits, and here's how I'm making the connections:
The 3 parameters of checkInput() are the minigrid, row and column numbers of the respective box in the grid. Qt doesn't accept Signals and Slots with different parameters, so how do I go about doing this?
Do I:
1) Overload returnPressed() of QLineEdit ? Is this even possible?
2) Create my own Signal in the Grid class? If so, how do I connect this signal to returnPressed() ? (if I do, then both will need to have void parameters. What how do I get the values of minigrid, row and column then?)
3) Change the structure of my grid? Use 81 connect statements ?
4) Can I subclass QLineEdit, and make my own signal in it?
Any help with this will be greatly appreciated..

Qt Connect Signal And Slot With Different Parameters Card

Connecting signals and slots with different parameters: Is it possible? The slot signature must either have the same number or less parameters than the signal and the type must be the same. Ni no kuni slot machines. Ace of spades quest. Reply Quote 0. 1 Reply Last reply. Signal & slot 87 signal 53 connect 40 slot 28 slots 26. Loading More Posts. Reply as topic.

Qt connect signal and slot with different parameters games

Qt Connect Two Signal

Hello,
I'm making a Sudoku (solving/generating) program in Qt. Now, I'm just a beginner as a programmer, and I have no experience with Qt. I'm stuck in a strange situation. I want to connect a signal and slot with different parameters.
My grid is made up of an array of QLineEdits, and here's how I'm making the connections:
The 3 parameters of checkInput() are the minigrid, row and column numbers of the respective box in the grid. Qt doesn't accept Signals and Slots with different parameters, so how do I go about doing this?
Do I:
1) Overload returnPressed() of QLineEdit ? Is this even possible?
2) Create my own Signal in the Grid class? If so, how do I connect this signal to returnPressed() ? (if I do, then both will need to have void parameters. What how do I get the values of minigrid, row and column then?)
3) Change the structure of my grid? Use 81 connect statements ?
4) Can I subclass QLineEdit, and make my own signal in it?
Any help with this will be greatly appreciated..