Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [whopper:~/dev/temp/bgcolor] $ cat main.cpp
- #include <QtGui>
- #include <QDebug>
- int main(int argc, char** argv)
- {
- QApplication app(argc, argv);
- QLineEdit lineEdit;
- lineEdit.show();
- qDebug() << lineEdit.palette().color(QPalette::Base);
- return app.exec();
- }
- [whopper:~/dev/temp/bgcolor] $ cat stylesheet.css
- QLineEdit { background: yellow }
- [whopper:~/dev/temp/bgcolor] $ bgcolor.app/Contents/MacOS/bgcolor -stylesheet stylesheet.css
- QColor(ARGB 1, 1, 1, 0)
Add Comment
Please, Sign In to add comment