Processing signals from a dynamic button array

I am making a class that is a QWidget descendant and which consists of buttons (a button table). Now, signal that is sent by this object is straightforward: void wasClicked(size_t x, size_t y) which sends button coords in the grid. But for this, I need to connect QPushButton's click signal to my widget. Since number of slots/signals depends on grid size, which is not determined at runtime, i can't create enough slots in advance. What should I do then?


Category: c# Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.121 (s). 12 q(s)