-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Labels
invalidThis doesn't seem rightThis doesn't seem right
Description
The title bar of a subwindow is not displaying.
Does only the QMainWindow support title bar?
auto window = new QWidget();
auto agent = new QWK::WidgetWindowAgent(window);
agent->setup(window);
auto titleLabel = new QLabel("aaaaaaaaaaa");
titleLabel->setAlignment(Qt::AlignCenter);
auto windowBar = new QWK::WindowBar();
//windowBar->setTitleLabel(titleLabel);
//windowBar->setHostWidget(window);
agent->setTitleBar(windowBar);
//agent->setHitTestVisible(menuBar, true);
agent->setSystemButton(QWK::WindowAgentBase::WindowIcon, windowBar->iconButton());
agent->setSystemButton(QWK::WindowAgentBase::Minimize, windowBar->minButton());
agent->setSystemButton(QWK::WindowAgentBase::Maximize, windowBar->maxButton());
agent->setSystemButton(QWK::WindowAgentBase::Close, windowBar->closeButton());
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem right