Colour bars/Display: Difference between revisions
Content added Content deleted
No edit summary |
m (→{{header|C++}}: the right tag for C++ is cpp in <lang>) |
||
Line 88: | Line 88: | ||
using Qt 4.6 |
using Qt 4.6 |
||
<PRE>file colorbars.h</PRE> |
<PRE>file colorbars.h</PRE> |
||
<lang |
<lang cpp>#ifndef MYWIDGET_H |
||
#define MYWIDGET_H |
#define MYWIDGET_H |
||
#include <QWidget> |
#include <QWidget> |
||
Line 107: | Line 107: | ||
#endif</lang> |
#endif</lang> |
||
<PRE>file colorbars.cpp</PRE> |
<PRE>file colorbars.cpp</PRE> |
||
<lang |
<lang cpp>#include <QtGui> |
||
#include "colorbars.h" |
#include "colorbars.h" |
||
Line 135: | Line 135: | ||
}</lang> |
}</lang> |
||
<PRE>file main.cpp</PRE> |
<PRE>file main.cpp</PRE> |
||
<lang |
<lang cpp>#include <QApplication> |
||
#include "colorbars.h" |
#include "colorbars.h" |
||