Style sheets

Installation and activation

To install a style sheet, simply unpack the archive somewhere in your file system. Then select the style sheet (.qss file) from within QMC2 to activate it. See Tools -> Options -> GUI -> Style sheet.

You can alternatively pass the style sheet to be used on the command line (i. e. qmc2-sdlmame -stylesheet /path/to/my/stylesheet.qss).

Notes

When enabling style sheets, make sure to use Qt 4.5.2 or above — older versions are known to have serious QtWebKit related bugs (that is, crashes). Also, QMC2 0.2.b10 or above is required!

In order to circumvent a Qt bug with relative paths in style sheets (image URLs), we have to change the current working directory to the one where the style sheet has been extracted. This has a minor impact, because MAME and MESS will use the current working directory for all of their outputs as per default (they create sub-directories as needed). To avoid that, make sure to fully setup all emulator-related paths within QMC2 (global emulator options).

Since version 0.2.b16 there’s an alternative (and recommended) solution: specify the working directory that’s used when the emulator is executed, which will – besides avoiding the need to specify any emulator-related paths (in case of the default setup) – circumvent this potential issue cleanly.

Yet another option is to pass the style sheet on the command line. This will also work around this Qt bug, but it’s probably not as nice as specifying the style sheet within the GUI.

QMC2 compatible Qt style sheets (QSS)

If you should have style sheets to contribute, please don’t hesitate to contact us!

Stylesheet name / link Last update Preview
qmc2-machinery-0.2.tar.bz2 12-MAY-2010
qmc2-xmas-0.3.tar.bz2 12-MAY-2010 qmc2-xmas-0.1
qmc2-fire-0.6.tar.bz2 12-MAY-2010
qmc2-black-0.8.tar.bz2 02-JUN-2010
qmc2-metal-0.7.tar.bz2 12-MAY-2010
qmc2-sandy-0.6.tar.bz2 12-MAY-2010