Colour bars/Display: Difference between revisions

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