Guest User

Untitled

a guest
Apr 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. [whopper:~/dev/temp/bgcolor] $ cat main.cpp
  2. #include <QtGui>
  3. #include <QDebug>
  4.  
  5. int main(int argc, char** argv)
  6. {
  7. QApplication app(argc, argv);
  8.  
  9. QLineEdit lineEdit;
  10. lineEdit.show();
  11.  
  12. qDebug() << lineEdit.palette().color(QPalette::Base);
  13.  
  14. return app.exec();
  15. }
  16.  
  17. [whopper:~/dev/temp/bgcolor] $ cat stylesheet.css
  18. QLineEdit { background: yellow }
  19.  
  20. [whopper:~/dev/temp/bgcolor] $ bgcolor.app/Contents/MacOS/bgcolor -stylesheet stylesheet.css
  21. QColor(ARGB 1, 1, 1, 0)
Add Comment
Please, Sign In to add comment