Coding Global Background
Coding Global

Webtool Kit Elemente werden nicht angezeigt

Archiviert a year ago
1 Nachrichten
1 Mitglieder
Erstellt 2 years ago
Aktualisiert 2 years ago
In Discord öffnen
M
gay house maid (she/her)
Member
#include <Wt/WApplication.h>
#include <Wt/WBreak.h>
#include <Wt/WContainerWidget.h>
#include <Wt/WLineEdit.h>
#include <Wt/WPushButton.h>
#include <Wt/WText.h>

class HelloApplication : public Wt::WApplication
{
public:
    HelloApplication(const Wt::WEnvironment& env);
};


HelloApplication::HelloApplication(const Wt::WEnvironment& env)
    : Wt::WApplication(env)
{
    setTitle("C++ Pain");
    Wt::WApplication::instance()->useStyleSheet("/home/mrtuxa/CLionProjects/blog/style/style.css");
    auto container = std::make_unique<Wt::WContainerWidget>();
    container->setStyleClass("gay");

    Wt::WText *text = container->addNew<Wt::WText>();
    text->setText("<p>Fuck this is bullshit</p>");

    container->addNew<Wt::WText>("Testing");
    root()->addNew<Wt::WText>("Test");
}

int main(int argc, char **argv)
{
    return Wt::WRun(argc, argv, [](const Wt::WEnvironment& env) {
      return std::make_unique<HelloApplication>(env);
    });
}

Irgendwie wird mir der p Tag und Testing nicht angezeigt

Antworten (1)