wysota> Thnks for replying me
my question is :
i) how to create forms from QT by reading from SQLITE table

following is the code im using to show one window.
Qt Code:
  1. #include <QApplication>
  2. #include <QGridLayout>
  3. #include <QPushButton>
  4. #include <QTextBox>
  5. #include <QProcess>
  6. #include "Connection.h"
  7. #include <QtCore/QVariant>
  8.  
  9. int main(int argc, char *argv[])
  10. {
  11. QApplication app(argc, argv);
  12. QWidget *win1 = new QWidget;
  13. QGridLayout *layout = new QGridLayout;
  14. QPushButton *ClickButton=new QPushButton("Click");
  15. QPushButton *CancelButton=new QPushButton("Cancel");
  16. QObject::connect(ClickButton,SIGNAL(clicked()),&app,SLOT(quit()));
  17. if(!createConnection())
  18. return 1;
  19. q.exec("SELECT * FROM ConfigTable");
  20. q.next();
  21. win1->setWindowTitle("Window1");
  22. win1->setFixedHeight(q.value(2).toInt());
  23. win1->setFixedWidth(q.value(3).toInt());
  24. layout->addWidget(ClickButton,0,0);
  25. layout->addWidget(CancelButton,0,2);
  26. win1->setLayout(layout);
  27. win1->show();
  28. return app.exec();
  29. }
To copy to clipboard, switch view to plain text mode 

How to create more than one windows, if the ConfigTable contain 2 or more records?

Thnks
Bala