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

一些改进意见 #1

Closed
lowbees opened this issue Jul 6, 2018 · 1 comment
Closed

一些改进意见 #1

lowbees opened this issue Jul 6, 2018 · 1 comment

Comments

@lowbees
Copy link

lowbees commented Jul 6, 2018

1.在.pro设置DESTDIR = $$PWD/bin,这样直接在bin目录下生成exe,不用拷贝bin目录了
2.为QComboBox的弹出框增加qss支持

QList<QComboBox *> cbList = cw->findChildren<QComboBox*>();
    foreach (QComboBox *cb, cbList)
        cb->setView(new QListView);
@xtuer
Copy link
Owner

xtuer commented Jul 8, 2018

  1. 在.pro设置DESTDIR = $$PWD/bin,这样直接在bin目录下生成exe,不用拷贝bin目录了
    打包是需要复制文件到 bin 文件夹,会导致 git 状态变化

  2. 为QComboBox的弹出框增加qss支持
    不用这么麻烦,看 boxbar.qss 里,QSS 支持的
    QComboBox QAbstractItemView {
    margin-top: 0px;
    padding-bottom: 0px;
    border: 1px solid #FFF;
    border-radius: 4px;
    background-color: white;
    }

@xtuer xtuer closed this as completed Jul 8, 2018
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