Project

General

Profile

Bug #2161 ยป main.cpp

Velvet Jones, 08/28/2013 01:57 PM

 
1
#include <Wt/WApplication>
2
#include <Wt/WContainerWidget>
3
#include <Wt/WLineEdit>
4

    
5
using namespace Wt;
6

    
7
class Test : public WApplication
8
{
9
    public:
10
        Test(const Wt::WEnvironment& env);
11
};
12

    
13
Test::Test(const Wt::WEnvironment& env)
14
    : Wt::WApplication(env)
15
{
16
  Wt::WLineEdit* le = new Wt::WLineEdit (root());
17

    
18
  le->setFocus();
19
}
20

    
21
WApplication* createApplication(const Wt::WEnvironment& env)
22
{
23
    return new Test(env);
24
}
25

    
26
int main(int argc, char *argv[])
27
{
28
   return Wt::WRun(argc, argv, &createApplication);
29
}
    (1-1/1)