source: trunk/examples/demo/opengl/glinfotext.h

Last change on this file was 160, checked in by dmik, 19 years ago

Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.

  • Property svn:keywords set to Id
File size: 464 bytes
Line 
1#include <qlayout.h>
2#include <qtextview.h>
3#include <qfont.h>
4#include "glinfo.h"
5
6class GLInfoText : public QWidget
7{
8public:
9 GLInfoText(QWidget *parent)
10 : QWidget(parent)
11 {
12 view = new QTextView(this);
13 view->setFont(QFont("courier", 10));
14 view->setWordWrap(QTextEdit::NoWrap);
15 QHBoxLayout *l = new QHBoxLayout(this);
16 l->addWidget(view);
17 GLInfo info;
18 view->setText(info.info());
19 }
20
21private:
22 QTextView *view;
23};
Note: See TracBrowser for help on using the repository browser.