Project

General

Profile

Bug #3810 » myapplication.cpp

Erhan Aydın, 02/20/2015 11:14 AM

 
#include "myapplication.h"

#include <Wt/WVBoxLayout>
#include <Wt/WContainerWidget>

MyApplication::MyApplication(const WEnvironment& environment)
:WApplication(environment)
{
WVBoxLayout* rootLayout = new WVBoxLayout();

root()->setLayout(rootLayout);

WContainerWidget* container = new WContainerWidget(root());
container->decorationStyle().setBackgroundColor(WColor("black"));

container->setMinimumSize(WLength(750), WLength(470));

rootLayout->addWidget(container);
}
(1-1/2)