#include "WNavigation.h" WNavigation::WNavigation() { //Init Buttons b_NEWS = addWidget(make_unique(tr("str.NEWS"))); b_DEV = addWidget(make_unique(tr("str.DEV"))); b_PROJ = addWidget(make_unique(tr("str.PROJ"))); b_MEDIA = addWidget(make_unique(tr("str.MEDIA"))); b_SHOP = addWidget(make_unique(tr("str.SHOP"))); b_CONTACT = addWidget(make_unique(tr("str.CONTACT"))); //Connect Buttons with click-event //??????????????? How does it work? b_NEWS->clicked().connect(std::bind(&TLayout::switchSection, 0)); b_DEV->clicked().connect(std::bind(&TLayout::switchSection, 1)); b_PROJ->clicked().connect(std::bind(&TLayout::switchSection, 2)); } WNavigation::~WNavigation() { //Free da memory! }