Thanks for advice but it doesn't work. My index is OK, tried it. I don't know what I am doing wrong. Here is my Platform class which inherits widget
Qt Code:
  1. class Platform : public QWidget
  2. {
  3. Q_OBJECT
  4. public:
  5. QLabel * labelPlatformType;
  6. QLineEdit * editPlatformType;
  7. QLabel * labelActivatedStatus;
  8. QLineEdit * editActivatedStatus;
  9. QLabel * platformOS;
  10. QLineEdit * editPlatformOS;
  11. QLabel * timeout;
  12. QLineEdit * editTimeout;
  13.  
  14. Platform( QWidget *parent = 0);
  15. virtual ~Platform();
  16. };
  17.  
  18. //this is constructor
  19.  
  20. Platform::Platform(QWidget *parent): QWidget(parent)
  21. {
  22. labelPlatformType= new QLabel(tr("Platform Type :"));
  23. labelPlatformType->setParent(parent);
  24. labelPlatformType->setGeometry(QRect(20, 30, 80, 18));
  25. editPlatformType= new QLineEdit(parent);
  26. editPlatformType->setGeometry(QRect(100, 30, 113, 18));
  27. labelActivatedStatus= new QLabel(tr("Activated Status :"));
  28. labelActivatedStatus->setParent(parent);
  29. labelActivatedStatus->setGeometry(QRect(20, 50, 100, 18));
  30. editActivatedStatus= new QLineEdit(parent);
  31. editActivatedStatus->setGeometry(QRect(130, 50, 81, 18));
  32. platformOS= new QLabel(tr("Platform OS :"));
  33. platformOS->setParent(parent);
  34. platformOS->setGeometry(QRect(250, 30, 100, 18));
  35. editPlatformOS= new QLineEdit(parent);
  36. editPlatformOS->setGeometry(QRect(332, 30, 91, 18));
  37. timeout= new QLabel(tr("Timeout :"));
  38. timeout->setParent(parent);
  39. timeout->setGeometry(QRect(250, 50, 100, 18));
  40. editTimeout= new QLineEdit(parent);
  41. editTimeout->setGeometry(QRect(310, 50, 113, 18));
  42. }
To copy to clipboard, switch view to plain text mode 
Maybe you got some new ideas? I don't know whats wrong here