Menu

Tree [3094cf] 1.2 /
 History

HTTPS access


File Date Author Commit
 example 2014-01-26 Colin Duquesnoy Colin Duquesnoy [087db0] Delete example_pyqt_ui.pyc
 qdarkstyle 2014-01-26 ColinDuquesnoy ColinDuquesnoy [2b9b71] Add newline at end of file
 screenshots 2012-11-05 Colin Duquesnoy Colin Duquesnoy [bcad40] Added 1st screenshot
 .gitignore 2014-01-26 ColinDuquesnoy ColinDuquesnoy [0e7920] #4 Add a QTableWidget to the examples
 .travis.yml 2014-01-02 ColinDuquesnoy ColinDuquesnoy [2d9f34] Add travis integration to test the examples
 COPYING 2014-01-02 ColinDuquesnoy ColinDuquesnoy [a9f8d3] #2 Update copyright year
 MANIFEST.in 2013-03-10 ColinDuquesnoy ColinDuquesnoy [83f786] Added packaging
 README.md 2014-01-26 Colin Duquesnoy Colin Duquesnoy [a9ab28] Update README.md
 setup.py 2014-01-26 ColinDuquesnoy ColinDuquesnoy [3094cf] Bump version to 1.2

Read Me

QDarkStylesheet

Bitdeli Badge
Build Status
Number of PyPI downloads
Latest PyPI version

A dark stylesheet for Qt applications.

License

This project is licensed under the MIT license.

Installation

Python

Install the qdarkstyle package using the setup script or using pip:

python setup.py install

or

pip install qdarkstyle

C++

Download/clone the project and copy the following files to your application directory:

  • qdarkstyle/style.qss
  • qdarkstyle/style.qrc
  • qdarkstyle/rc/ (the whole directory)

Usage

Here is an example using PySide:

import sys
import qdarkstyle
from PySide import QtGui


# create the application and the main window
app = QtGui.QApplication(sys.argv)
window = QtGui.QMainWindow()

# setup stylesheet
app.setStyleSheet(qdarkstyle.load_stylesheet())

# run
window.show()
app.exec_()

To use PyQt4 instead of PySide, you just need to replace

app.setStyleSheet(qdarkstyle.load_stylesheet())

by

app.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False))

There is an example included in the example folder. You can run the script without installing qdarkstyle. You
only need to have PySide or PyQt4 installed on your system.

Status:

The following widgets are styled:

  • QMainWindow
  • QWidget
  • QMenu, QMenuBar
  • QToolTip
  • QAbstractItemView
  • QLineEdit
  • QGroupBox
  • QTextEdit, QPlainTextEdit
  • QTreeView,
  • QScrollBar
  • QRadioButton
  • QCheckBox
  • QComboBox
  • QPushButton
  • QToolButton
  • QToolBar
  • QProgressBar
  • QSpinBox
  • QFrame
  • QTabWidget, QTabBar
  • QDockWidget
  • QSlider (horizontal and vertical)

What still needs to be done:

  • QAbstractScrollArea
  • QSplitter
  • QStatusBar
  • QToolBox

Changelog

* 1.2:
   - Improve QTableView support
* 1.1:
   - Switch to MIT license
   - Add python 3 support
* 1.0:
  - First public release (LGPL v2)

Contact information:

Snapshots

I have used this stylesheet for an internal tool at work. Are are a few screenshots:

alt text

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.