hello wysota
how can i interact with each buttons that i have used in creating my custom
calender means i want to say suppose i click one button than it will give
all the information of that buttons ie in which month,which week ie
sun,mon,tue..etc is shown in textBrowser.
i have tried to done one thing..
for(int i=0;i<6;i++)
{
for(int j=0;j<7;j++)
{
connect(cellBut[i][j],SIGNAL(clicked()),this,SLOT(showDialog()));
}
}
void MainWindow::showDialog()
{
txtDateDisplay->setText("Hello");
}
for(int i=0;i<6;i++)
{
for(int j=0;j<7;j++)
{
cellBut[i][j]=new QPushButton;
connect(cellBut[i][j],SIGNAL(clicked()),this,SLOT(showDialog()));
}
}
void MainWindow::showDialog()
{
txtDateDisplay->setText("Hello");
}
To copy to clipboard, switch view to plain text mode
now here on each button click i simply set a text hello in the txtDateDisplay..now if i want that on each button click i set the text that appear on button in txtDateDisplay than how should i do it..because here i cant pass arguments in SIGNAL(Clicked()) function..
regards
Rahul
Bookmarks