标签:工具 显示 highlight ack for content 通过 utils 基于
主要是通过设置属性实现。
下面的是基于Qt的代码,同时不显示窗口标题和icon。
void MacUtils::CreateCocoaContianerForWindow(QWindow *pwidget)
{
pwidget->setIcon(QIcon());
pwidget->setTitle("");
NSWindow* window2 = [pwidget->winId() window];
window2.titlebarAppearsTransparent = true;
[window2 setTitle: @""];
window2.movableByWindowBackground = false;
window2.styleMask |= NSFullSizeContentViewWindowMask;
}
标签:工具 显示 highlight ack for content 通过 utils 基于
原文地址:http://www.cnblogs.com/vectorli/p/7735775.html