Fetch text on array of buttons and set it on textbrwoser when clicked on a button.
General and Desktop
10
Posts
4
Posters
3.9k
Views
1
Watching
-
Hello friends,I have created an array of buttons ,can u tell me how shall i interact with each button,i mean when i click any of the buttons,i shouls be able to open a new window,(the same window)..below is my code how created an array of buttons
@for(i=0;i<6;i++)
{
for(j=1;j<=7;j++)
{
cellBut[i][j]=new QPushButton;controlsLayout->addWidget(cellBut[i][j], i, j);
}@regards
imrrk -
Hi,
You can use Signal Mapper.
Take a look at this demo, it can help you: http://doc.qt.nokia.com/qq/qq10-signalmapper.html