You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qt3/examples/demo/opengl/glinfotext.h

24 lines
441 B

#include <qlayout.h>
#include <qtextview.h>
#include <qfont.h>
#include "glinfo.h"
class GLInfoText : public QWidget
{
public:
GLInfoText(QWidget *parent)
: QWidget(parent)
{
view = new QTextView(this);
view->setFont(QFont("courier", 10));
view->setWordWrap(QTextEdit::NoWrap);
QHBoxLayout *l = new QHBoxLayout(this);
l->addWidget(view);
GLInfo info;
view->setText(info.info());
}
private:
QTextView *view;
};