ctkSearchBoxTest1.cpp 699 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Qt includes
  2. #include <QApplication>
  3. #include <QDebug>
  4. #include <QVBoxLayout>
  5. #include <QTimer>
  6. // CTK includes
  7. #include "ctkSearchBox.h"
  8. // STD includes
  9. #include <cstdlib>
  10. #include <iostream>
  11. // ------------------------------------------------------------------------------
  12. int ctkSearchBoxTest1(int argc, char* argv[])
  13. {
  14. QApplication app(argc, argv);
  15. ctkSearchBox search;
  16. search.show();
  17. QWidget topLevel;
  18. ctkSearchBox search3;
  19. QVBoxLayout* layout = new QVBoxLayout;
  20. layout->addWidget(&search3);
  21. topLevel.setLayout(layout);
  22. topLevel.show();
  23. if (argc < 2 || QString(argv[1]) != "-I" )
  24. {
  25. QTimer::singleShot(200, &app, SLOT(quit()));
  26. }
  27. return app.exec();
  28. }