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.
tqt3/examples/demo/opengl/glinfotext.h

24 lines
454 B

#include <ntqlayout.h>
#include <tqtextview.h>
#include <tqfont.h>
#include "glinfo.h"
class GLInfoText : public TQWidget
{
public:
GLInfoText(TQWidget *parent)
: TQWidget(parent)
{
view = new TQTextView(this);
view->setFont(TQFont("courier", 10));
view->setWordWrap(TQTextEdit::NoWrap);
TQHBoxLayout *l = new TQHBoxLayout(this);
l->addWidget(view);
GLInfo info;
view->setText(info.info());
}
private:
TQTextView *view;
};