⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Wt
All Projects
Wt
Overview
Activity
Roadmap
Issues
Wiki
Forums
Download (636 Bytes)
Bug #7059
» bug.cpp
Minimal example -
Captain Crutches
, 05/18/2019 05:51 AM
#include
<Wt/WApplication.h>
#include
<Wt/WContainerWidget.h>
#include
<Wt/WText.h>
class
HelloApplication
:
public
Wt
::
WApplication
{
public:
HelloApplication
(
const
Wt
::
WEnvironment
&
env
)
:
Wt
::
WApplication
(
env
)
{
setTitle
(
"Hello world"
);
auto
container
=
root
()
->
addNew
<
Wt
::
WContainerWidget
>
();
container
->
setHtmlTagName
(
"nav"
);
container
->
setStyleClass
(
"navbar"
);
container
->
addNew
<
Wt
::
WText
>
(
"Bug demo"
);
}
};
int
main
(
int
argc
,
char
**
argv
)
{
return
Wt
::
WRun
(
argc
,
argv
,
[](
const
Wt
::
WEnvironment
&
env
)
{
return
std
::
make_unique
<
HelloApplication
>
(
env
);
});
}
« Previous
1
2
Next »
(1-1/2)
Loading...