2 // VideoWin.cpp: Windows video display
6 // JPM = Jean-Paul Mari <djipi.mari@gmail.com>
9 // --- ---------- ------------------------------------------------------------
10 // JPM 06/23/2016 Created this file
13 //#include "mainwin.h"
17 VideoOutputWindow::VideoOutputWindow(QWidget
* parent
/*= 0*/) : QWidget(parent
),
18 layout(new QHBoxLayout
), text(new QLabel
)
20 setWindowTitle(tr("Video windows"));
21 //setCentralWidget(videoWidget);
23 // QFont fixedFont("Lucida Console", 8, QFont::Normal);
24 // QFont fixedFont("", 8, QFont::Normal);
25 // fixedFont.setStyleHint(QFont::TypeWriter);
26 // text->setFont(fixedFont);
29 // layout->addWidget(text);
31 QWidget
* myWidget
= new QWidget
;
32 myWidget
->setStyleSheet("QWidget{ background: red; }");
34 GLWidget
*glWidget
= new GLWidget
;
35 //QHBoxLayout *mainLayout = new QHBoxLayout;
36 layout
->addWidget(myWidget
);
37 layout
->setContentsMargins(100, 100, 100, 100);
42 // Refresh / Display the window contents
43 void VideoOutputWindow::RefreshContents(GLWidget
*Lt
)
45 layout
->addWidget(Lt
);
49 // memDump += QString("Test");
52 // text->setText(memDump);
57 VideoOutputWindow::~VideoOutputWindow()