Skip to content

The title bar of a subwindow is not showing. #191

@ihmin

Description

@ihmin

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

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions