Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于 skin.ini 自定义 窗口按钮问题 #1

Open
wangqiangcc opened this issue Oct 20, 2017 · 1 comment
Open

关于 skin.ini 自定义 窗口按钮问题 #1

wangqiangcc opened this issue Oct 20, 2017 · 1 comment

Comments

@wangqiangcc
Copy link

wangqiangcc commented Oct 20, 2017

你好,我在测试 qtskinui 的时候发现,我添加一个 自定义窗口
[sub_dialog]
inherit=default
titlebar_style=MAIN_FORM_STYLE

然后
//这是对话框, 从QDialog继承
class About_Form : public Base_Widget {
...
};

About_Form w(this, SkinManager::instance()->get("sub_dialog"));
w.exec();

发现 about 窗口没有多出 图标,最小化,最大化,菜单 这些按钮出来,我看了一下
Title_Bar.h 里有定义 MAIN_FORM_STYLE = FORM_STYLE|SHOW_MENU,

但是从skin.ini 设置并没有生效。

@abc100m
Copy link
Owner

abc100m commented Nov 21, 2017

问题解决了吗?Qt有段时间没用了,这个我猜测下:
1)修改了ini没有重新编译skin.qrc这个资源文件?
2)你的代码初看没有问题,titlebar_style可以尝试下 MAIN_FORM_BG_STYLE?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants