hey there, i have created 4 tabs in my program but they dont seem to communicate with each other by this i mean like i have this method in my third tab:

Qt Code:
  1. int DesignTab::tariffReturn()
  2. {
  3. return tariff1->currentIndex();
  4. }
To copy to clipboard, switch view to plain text mode 

but when i try calling it from my 4th tab using DesignTab.tariffReturn( ) it gives an error when compiling saying the following:

"expected primary expression before '.' token"

does anyone know how i can call this method? or pass the value into my last tab?