Hi
I am trying to use a connect statement in a QWidget class on a tabBar declared in this class,i have included other class to this class and in slot i want a member of that class to be called ,so below in the code are two connect statements and both dont work
#include "NineSilicaWidget.h"
class NetworkInterface
: public QWidget{
..
NineSilicaWidget *nineSilica;
..
..
connect(tabBar,SIGNAL(currentChanged(int)),this,SLOT(setEnabled(bool)));
connect(tabBar,SIGNAL(currentChanged(int)),nineSilica,SLOT(someSlot()));
..
}
#include "NineSilicaWidget.h"
class NetworkInterface : public QWidget
{
..
QTabBar *tabBar;
NineSilicaWidget *nineSilica;
..
..
connect(tabBar,SIGNAL(currentChanged(int)),this,SLOT(setEnabled(bool)));
connect(tabBar,SIGNAL(currentChanged(int)),nineSilica,SLOT(someSlot()));
..
}
To copy to clipboard, switch view to plain text mode
Also,if any one can clarify me the difference between QTabBar and QTabWidget...i dont get the idea clearly from the docs
Bookmarks