cbh2000 / lc3ide

The cross platform LC-3 Integrated Development Environment.
0 stars 1 forks source link

Custom Widgets #3

Open cbh2000 opened 11 years ago

cbh2000 commented 11 years ago

It has become quickly apparent that my idea of a multi-state button (something like a lightswitch with three positions instead of two) will need to be manually painted through paintEvent or similar. This could be a pain, since it should match each native environment. In Qt 4, there were the QStyleOption* classes that could be used to draw custom widgets that looked native, but there could be a better way with Qt 5.

cbh2000 commented 11 years ago

It looks simple to do: http://qt-project.org/doc/qt-5.0/qtwidgets/qstyle.html

(YAY!!!)