HI,
In My code i set some tab order but it doesnt works pls guide me to resolve this


mainwindow.cpp
Qt Code:
  1. #include "mainwindow.h"
  2. #include<QtGui>
  3.  
  4.  
  5. MainWindow::MainWindow(QWidget *parent) : QDialog(parent)
  6. {
  7. buttonBox = new QDialogButtonBox(this);
  8. buttonBox->setGeometry(QRect(170, 90, 181, 34));
  9. buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Save);
  10.  
  11. groupBox = new QGroupBox(this);
  12. groupBox->setGeometry(QRect(10, 10, 141, 80));
  13.  
  14. RB1= new QRadioButton(groupBox);
  15. RB1->setGeometry(QRect(10, 10, 121, 19));
  16. RB1->setText("Absalute Time");
  17. RB1->setChecked(true);
  18. RB1->setFocus();
  19.  
  20.  
  21. RB2 = new QRadioButton(groupBox);
  22. RB2->setGeometry(QRect(10, 40, 111, 19));
  23. RB2->setText("Relative Time");
  24.  
  25. CB1= new QComboBox(this);
  26. CB1->setGeometry(QRect(170, 20, 78, 24));
  27. CB1->addItem("1");
  28. CB1->addItem("2");
  29. CB1->addItem("3");
  30. CB1->addItem("4");
  31.  
  32. CB2 = new QComboBox(this);
  33. CB2->setGeometry(QRect(270, 20, 78, 24));
  34. CB2->addItem("1");
  35. CB2->addItem("2");
  36. CB2->addItem("3");
  37. CB2->addItem("4");
  38.  
  39. CB3 = new QComboBox(this);
  40. CB3->setGeometry(QRect(170, 50, 78, 24));
  41. CB3->addItem("1");
  42. CB3->addItem("2");
  43. CB3->addItem("3");
  44. CB3->addItem("4");
  45.  
  46. QWidget::setTabOrder(CB1,CB2);
  47. QWidget::setTabOrder(CB2,buttonBox);
  48. QWidget::setTabOrder(CB3,buttonBox);
  49.  
  50. }
To copy to clipboard, switch view to plain text mode 

Regards: