therealjag
23rd February 2006, 21:01
hey there, i have created a push button inside a tab called demandsTab() and i have connected the button to a method. the method and the connection is shown below:
QPushButton *shortestPathButton = new QPushButton(tr("Shortest Path"));
connect(shortestPathButton, SIGNAL(clicked()), this, SLOT(PermissionsTab::outputTable()));
the slot function that i created is shown below:
void PermissionsTab::outputTable()
{
int result = 5;
display->setText(QString::number(result));
}
i basically just want the display to output the number 5 in the permissions tab when i press the button from the demands tab, but it isnt working....any idea's??? Jag
QPushButton *shortestPathButton = new QPushButton(tr("Shortest Path"));
connect(shortestPathButton, SIGNAL(clicked()), this, SLOT(PermissionsTab::outputTable()));
the slot function that i created is shown below:
void PermissionsTab::outputTable()
{
int result = 5;
display->setText(QString::number(result));
}
i basically just want the display to output the number 5 in the permissions tab when i press the button from the demands tab, but it isnt working....any idea's??? Jag