rasterwindow related code:
main.cpp
-----------
#include "rasterwindow.h"
#include<mqueue.h>
#include <stdio.h>
#include<qwindow.h>
#include<qwindowdefs.h>
int main(int argc, char **argv)
{
struct mq_attr mqAttr;
char buffer[512];
mqd_t msgid;
int ret_val;
int winid_int;
WId winid ;
mqAttr.mq_maxmsg = 10;
mqAttr.mq_msgsize = 512;
QGuiApplication app(argc, argv);
qDebug()<<"in main";
RasterWindow window;
winid = window.winId();
qDebug()<<"window id is :"<< winid;
winid_int = (int) winid;
qDebug()<<"window id int :"<< winid;
msgid = mq_open("/embed6",O_RDWR);
if(-1 == msgid){
perror("mq_open");
//return NULL;
}else{
qDebug()<<"mq_open success";
}
sprintf(buffer,"%d",winid_int);
ret_val = mq_send(msgid,buffer,strlen(buffer)+1,1);
if(-1 == ret_val)
perror("mq_send");
else {
qDebug () << "window id sent is"<< buffer;
mq_close(msgid);
}
window.show();
return app.exec();
}
#include "rasterwindow.h"
#include<mqueue.h>
#include <stdio.h>
#include<qwindow.h>
#include<qwindowdefs.h>
int main(int argc, char **argv)
{
struct mq_attr mqAttr;
char buffer[512];
mqd_t msgid;
int ret_val;
int winid_int;
WId winid ;
mqAttr.mq_maxmsg = 10;
mqAttr.mq_msgsize = 512;
QGuiApplication app(argc, argv);
qDebug()<<"in main";
RasterWindow window;
winid = window.winId();
qDebug()<<"window id is :"<< winid;
winid_int = (int) winid;
qDebug()<<"window id int :"<< winid;
msgid = mq_open("/embed6",O_RDWR);
if(-1 == msgid){
perror("mq_open");
//return NULL;
}else{
qDebug()<<"mq_open success";
}
sprintf(buffer,"%d",winid_int);
ret_val = mq_send(msgid,buffer,strlen(buffer)+1,1);
if(-1 == ret_val)
perror("mq_send");
else {
qDebug () << "window id sent is"<< buffer;
mq_close(msgid);
}
window.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
rasterwindow.cpp
---------------------
#include "rasterwindow.h"
#include<mqueue.h>
#include <stdio.h>
#include<qwindow.h>
#include<qwindowdefs.h>
RasterWindow::RasterWindow(QWindow *parent)
: QWindow(parent)
, m_update_pending(false)
{
qDebug()<<"In RasterWindow";
m_backingStore = new QBackingStore(this);
create();
setGeometry(100, 100, 300, 200);
setMinimumWidth(800);
setMinimumHeight(600);
//setGeometry(0, 0, 0, 0);
}
bool RasterWindow
::event(QEvent *event
) {
if (event
->type
() == QEvent::UpdateRequest) { m_update_pending = false;
renderNow();
return true;
}
return QWindow::event(event);
}
void RasterWindow::renderLater()
{
if (!m_update_pending) {
m_update_pending = true;
}
}
{
m_backingStore->resize(resizeEvent->size());
if (isExposed())
renderNow();
}
void RasterWindow::exposeEvent(QExposeEvent *)
{
if (isExposed()) {
renderNow();
}
}
void RasterWindow::renderNow()
{
if (!isExposed())
return;
QRect rect
(0,
0, width
(), height
());
m_backingStore->beginPaint(rect);
painter.fillRect(0, 0, width(), height(), Qt::white);
render(&painter);
m_backingStore->endPaint();
m_backingStore->flush(rect);
}
void RasterWindow
::render(QPainter *painter
) {
painter
->drawText
(QRectF(0,
0, width
(), height
()), Qt
::AlignCenter, QStringLiteral
("QWindow"));
}
#include "rasterwindow.h"
#include<mqueue.h>
#include <stdio.h>
#include<qwindow.h>
#include<qwindowdefs.h>
RasterWindow::RasterWindow(QWindow *parent)
: QWindow(parent)
, m_update_pending(false)
{
qDebug()<<"In RasterWindow";
m_backingStore = new QBackingStore(this);
create();
setGeometry(100, 100, 300, 200);
setMinimumWidth(800);
setMinimumHeight(600);
//setGeometry(0, 0, 0, 0);
}
bool RasterWindow::event(QEvent *event)
{
if (event->type() == QEvent::UpdateRequest) {
m_update_pending = false;
renderNow();
return true;
}
return QWindow::event(event);
}
void RasterWindow::renderLater()
{
if (!m_update_pending) {
m_update_pending = true;
QCoreApplication::postEvent(this, new QEvent(QEvent::UpdateRequest));
}
}
void RasterWindow::resizeEvent(QResizeEvent *resizeEvent)
{
m_backingStore->resize(resizeEvent->size());
if (isExposed())
renderNow();
}
void RasterWindow::exposeEvent(QExposeEvent *)
{
if (isExposed()) {
renderNow();
}
}
void RasterWindow::renderNow()
{
if (!isExposed())
return;
QRect rect(0, 0, width(), height());
m_backingStore->beginPaint(rect);
QPaintDevice *device = m_backingStore->paintDevice();
QPainter painter(device);
painter.fillRect(0, 0, width(), height(), Qt::white);
render(&painter);
m_backingStore->endPaint();
m_backingStore->flush(rect);
}
void RasterWindow::render(QPainter *painter)
{
painter->drawText(QRectF(0, 0, width(), height()), Qt::AlignCenter, QStringLiteral("QWindow"));
}
To copy to clipboard, switch view to plain text mode
rasterwindow.h
------------------
#ifndef RASTERWINDOW_H
#define RASTERWINDOW_H
#include <QtGui>
class RasterWindow : public QWindow
{
Q_OBJECT
public:
explicit RasterWindow(QWindow *parent = 0);
public slots:
void renderLater();
void renderNow();
protected:
void exposeEvent(QExposeEvent *event);
private:
QBackingStore *m_backingStore;
bool m_update_pending;
};
#endif // RASTERWINDOW_H
#ifndef RASTERWINDOW_H
#define RASTERWINDOW_H
#include <QtGui>
class RasterWindow : public QWindow
{
Q_OBJECT
public:
explicit RasterWindow(QWindow *parent = 0);
virtual void render(QPainter *painter);
public slots:
void renderLater();
void renderNow();
protected:
bool event(QEvent *event);
void resizeEvent(QResizeEvent *event);
void exposeEvent(QExposeEvent *event);
private:
QBackingStore *m_backingStore;
bool m_update_pending;
};
#endif // RASTERWINDOW_H
To copy to clipboard, switch view to plain text mode
following is the log when i run the application:
QML debugging is enabled. Only use this in a safe environment.
in Main
MainWindow
thread create success
Init unable to unlink
mq_open success
Launch_Hello_Test
"in main
"
"In RasterWindow
"
"window id is : 113246214
window id int : 113246214
"
window id received is : 113246214
embed_window
"mq_open success
window id sent is 113246214
"
unlink success
In launch_app win id is 113246214
addWidget
Minimum Height is 608
/home/Documents/5.1example/appr2/container-build-Qt5_1Alpha-Debug/container exited with code 0
QML debugging is enabled. Only use this in a safe environment.
in Main
MainWindow
thread create success
Init unable to unlink
mq_open success
Launch_Hello_Test
"in main
"
"In RasterWindow
"
"window id is : 113246214
window id int : 113246214
"
window id received is : 113246214
embed_window
"mq_open success
window id sent is 113246214
"
unlink success
In launch_app win id is 113246214
addWidget
Minimum Height is 608
/home/Documents/5.1example/appr2/container-build-Qt5_1Alpha-Debug/container exited with code 0
To copy to clipboard, switch view to plain text mode
Added after 11 minutes:
main.cpp
-----------
#include "mainwindow.h"
MainWindow *Container;
int main(int argc, char *argv[])
{
qDebug()<<"in Main";
Container = new MainWindow();
Container->show();
return qapp.exec();
}
#include "mainwindow.h"
MainWindow *Container;
int main(int argc, char *argv[])
{
QApplication qapp(argc, argv);
qDebug()<<"in Main";
Container = new MainWindow();
Container->show();
return qapp.exec();
}
To copy to clipboard, switch view to plain text mode
mainwindow.cpp
----------------
#include "mainwindow.h"
#include <QWindow>
#include <QObject>
#define HEIGHT 708
#define FTP_HEIGHT 60
#define WIDTH 196
#include <pthread.h>
#include <mqueue.h>
#include <QtWidgets/qwidget.h>
#include <qwindow.h>
#include <qwindowdefs.h>
#define HELLOTEST "/home/Documents/5.1example/appr2/rasterwindow-build-Desktop-Release/rasterwindow"
void *wait_for_id(void * arg);
extern MainWindow *Container;
MainWindow
::MainWindow(QWidget *parent
){
qDebug()<< "MainWindow";
ApplicationProcess = NULL;
getDisplayProperties(&max_width,&max_height);
setWindowMinimumSizes(max_width - 300,HEIGHT - 100);
setWindowMaximumSizes(max_width,max_height);
createActions();
createMenus();
mainwindow->setMinimumSize(min_width,min_height);
mainwindow->setMaximumSize(max_width,max_height);
setCentralWidget(mainwindow);
pl.setColor(pl.Background,Qt::white);
mainwindow->setAutoFillBackground(true);
mainwindow->setPalette(pl);
appwindow = new ApplicationWindow (min_width - WIDTH ,min_height - (FTP_HEIGHT + 105),max_width - WIDTH,max_height - (100 +FTP_HEIGHT ) );
display = appwindow->createApplicationWindow();
vWidget->setLayout(vLayout);
vLayout->addWidget(display);
vLayout->setSpacing(1);
display->setAutoFillBackground(true);
mainLayout ->addWidget(vWidget);
mainwindow ->setLayout(mainLayout);
vLayout->setContentsMargins(0,0,0,0);
display->setContentsMargins(0,0,0,0);
mainwindow->setContentsMargins(0,0,0,0);
pthread_t tid;
if (-1 == pthread_create(&tid,NULL,wait_for_id,NULL)){
perror("pthread_create");
}else{
qDebug()<<"thread create success";
}
}
void MainWindow::getDisplayProperties(int* width,int* height )
{
int x = 0,y = 0;
rec = D.geometry();
rec.getRect(&x,&y,width,height);
}
void MainWindow::setWindowMinimumSizes(int min_width,int min_height)
{
this->min_width = min_width;
this->min_height = min_height;
qDebug()<<"Minimum Height is"<<min_height;
}
void MainWindow::setWindowMaximumSizes(int max_width,int max_height)
{
this->max_width = max_width;
this->max_height = max_height;
}
void MainWindow::createActions()
{
HelloTestAct
= new QAction(tr
("&HelloTest"),
this);
connect(HelloTestAct,SIGNAL(triggered()),this,SLOT(Launch_Hello_Test()));
connect(this,SIGNAL(send_winid(int)),this,SLOT(launch_app(int)));
}
void MainWindow::Launch_Hello_Test()
{
qDebug() << "Launch_Hello_Test";
Container->process = ApplicationProcess;
connect( ApplicationProcess,SIGNAL(readyReadStandardError()),this,SLOT(readStandardError()));
connect( ApplicationProcess,SIGNAL(readyReadStandardOutput()),this,SLOT(readStandardOutput()));
connect(ApplicationProcess,
SIGNAL(finished
(int,
QProcess::ExitStatus)),
this,
SLOT(finish
(int,
QProcess::ExitStatus)));
ApplicationProcess->start(executable, arguments);
}
void MainWindow :: readStandardOutput()
{
if(ApplicationProcess){
Output = ApplicationProcess->readAllStandardOutput();
qDebug()<<Output;
}else{
qDebug()<<"Problem StdOut";
}
}
void MainWindow :: readStandardError()
{
if(ApplicationProcess){
Output = ApplicationProcess->readAllStandardError();
qDebug()<<Output;
}else{
qDebug()<<"Problem StdErr";
}
}
void * wait_for_id( void *arg)
{
struct mq_attr mqAttr;
char buffer[1024];
mqd_t msgid;
int ret_val;
int winid;
mqAttr.mq_maxmsg = 10;
mqAttr.mq_msgsize = 512;
if(mq_unlink("/embed6")<0)
qDebug()<<"Init unable to unlink";
else
qDebug()<<"Init unlink success";
msgid = mq_open("/embed6",O_RDWR|O_CREAT,0777,&mqAttr);
if(-1 == msgid){
perror("mq_open");
}else{
qDebug()<< "mq_open success";
ret_val = mq_receive(msgid,buffer,sizeof(buffer),NULL);
if(-1 == ret_val) {
qDebug() << "mq_receive ret_val(Err) = "<< ret_val;
}
else {
qDebug() << "window id received is :"<< buffer;
mq_close(msgid);
winid = atoi(buffer);
Container->embed_window(winid);
if(mq_unlink("/embed6")<0)
qDebug()<<"unable to unlink";
else
qDebug()<<"unlink success";
}
}
}
void MainWindow ::embed_window(int id)
{
qDebug() << "embed_window";
emit send_winid(id);
}
void MainWindow::launch_app(int id)
{
WId winid = (WId) id;
qDebug()<<"In launch_app win id is "<< id;
display->setLayout(vl);
window = createWindowContainer(QWindow::fromWinId(winid),display,\
Qt::WindowMinMaxButtonsHint|Qt::WindowCloseButtonHint
|Qt::WindowCancelButtonHint
|Qt::FramelessWindowHint);
vl -> addWidget(window);
qDebug()<<"addWidget";
}
void MainWindow
::finish(int,
QProcess::ExitStatus) {
qDebug()<<"finish";
}
void MainWindow::createMenus()
{
fileMenu = menuBar()->addMenu(tr("&File"));
fileMenu->addAction(HelloTestAct);
}
MainWindow :: ~MainWindow()
{
}
#include "mainwindow.h"
#include <QWindow>
#include <QObject>
#define HEIGHT 708
#define FTP_HEIGHT 60
#define WIDTH 196
#include <pthread.h>
#include <mqueue.h>
#include <QtWidgets/qwidget.h>
#include <qwindow.h>
#include <qwindowdefs.h>
#define HELLOTEST "/home/Documents/5.1example/appr2/rasterwindow-build-Desktop-Release/rasterwindow"
void *wait_for_id(void * arg);
extern MainWindow *Container;
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
qDebug()<< "MainWindow";
ApplicationProcess = NULL;
QWidget* mainwindow = new QWidget();
getDisplayProperties(&max_width,&max_height);
setWindowMinimumSizes(max_width - 300,HEIGHT - 100);
setWindowMaximumSizes(max_width,max_height);
createActions();
createMenus();
mainwindow->setMinimumSize(min_width,min_height);
mainwindow->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
mainwindow->setMaximumSize(max_width,max_height);
setCentralWidget(mainwindow);
QPalette pl ;
pl.setColor(pl.Background,Qt::white);
mainwindow->setAutoFillBackground(true);
mainwindow->setPalette(pl);
vLayout = new QVBoxLayout();
mainLayout = new QHBoxLayout();
vWidget = new QWidget();
appwindow = new ApplicationWindow (min_width - WIDTH ,min_height - (FTP_HEIGHT + 105),max_width - WIDTH,max_height - (100 +FTP_HEIGHT ) );
display = appwindow->createApplicationWindow();
vWidget->setLayout(vLayout);
vLayout->addWidget(display);
vLayout->setSpacing(1);
display->setPalette(QPalette(QColor(10,0,10,255)));
display->setAutoFillBackground(true);
mainLayout ->addWidget(vWidget);
mainwindow ->setLayout(mainLayout);
vLayout->setContentsMargins(0,0,0,0);
display->setContentsMargins(0,0,0,0);
mainwindow->setContentsMargins(0,0,0,0);
mainwindow->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
display->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
pthread_t tid;
if (-1 == pthread_create(&tid,NULL,wait_for_id,NULL)){
perror("pthread_create");
}else{
qDebug()<<"thread create success";
}
}
void MainWindow::getDisplayProperties(int* width,int* height )
{
int x = 0,y = 0;
QRect rec;
QDesktopWidget D;
rec = D.geometry();
rec.getRect(&x,&y,width,height);
}
void MainWindow::setWindowMinimumSizes(int min_width,int min_height)
{
this->min_width = min_width;
this->min_height = min_height;
qDebug()<<"Minimum Height is"<<min_height;
}
void MainWindow::setWindowMaximumSizes(int max_width,int max_height)
{
this->max_width = max_width;
this->max_height = max_height;
}
void MainWindow::createActions()
{
HelloTestAct = new QAction(tr("&HelloTest"),this);
connect(HelloTestAct,SIGNAL(triggered()),this,SLOT(Launch_Hello_Test()));
connect(this,SIGNAL(send_winid(int)),this,SLOT(launch_app(int)));
}
void MainWindow::Launch_Hello_Test()
{
qDebug() << "Launch_Hello_Test";
ApplicationProcess = new QProcess();
QString executable(HELLOTEST);
QStringList arguments;
Container->process = ApplicationProcess;
connect( ApplicationProcess,SIGNAL(readyReadStandardError()),this,SLOT(readStandardError()));
connect( ApplicationProcess,SIGNAL(readyReadStandardOutput()),this,SLOT(readStandardOutput()));
connect(ApplicationProcess,SIGNAL(finished(int,QProcess::ExitStatus)),this,SLOT(finish(int,QProcess::ExitStatus)));
ApplicationProcess->start(executable, arguments);
}
void MainWindow :: readStandardOutput()
{
QString Output;
if(ApplicationProcess){
Output = ApplicationProcess->readAllStandardOutput();
qDebug()<<Output;
}else{
qDebug()<<"Problem StdOut";
}
}
void MainWindow :: readStandardError()
{
QString Output;
if(ApplicationProcess){
Output = ApplicationProcess->readAllStandardError();
qDebug()<<Output;
}else{
qDebug()<<"Problem StdErr";
}
}
void * wait_for_id( void *arg)
{
struct mq_attr mqAttr;
char buffer[1024];
mqd_t msgid;
int ret_val;
int winid;
mqAttr.mq_maxmsg = 10;
mqAttr.mq_msgsize = 512;
if(mq_unlink("/embed6")<0)
qDebug()<<"Init unable to unlink";
else
qDebug()<<"Init unlink success";
msgid = mq_open("/embed6",O_RDWR|O_CREAT,0777,&mqAttr);
if(-1 == msgid){
perror("mq_open");
}else{
qDebug()<< "mq_open success";
ret_val = mq_receive(msgid,buffer,sizeof(buffer),NULL);
if(-1 == ret_val) {
qDebug() << "mq_receive ret_val(Err) = "<< ret_val;
}
else {
qDebug() << "window id received is :"<< buffer;
mq_close(msgid);
winid = atoi(buffer);
Container->embed_window(winid);
if(mq_unlink("/embed6")<0)
qDebug()<<"unable to unlink";
else
qDebug()<<"unlink success";
}
}
}
void MainWindow ::embed_window(int id)
{
qDebug() << "embed_window";
emit send_winid(id);
}
void MainWindow::launch_app(int id)
{
WId winid = (WId) id;
qDebug()<<"In launch_app win id is "<< id;
QVBoxLayout *vl = new QVBoxLayout;
display->setLayout(vl);
window = createWindowContainer(QWindow::fromWinId(winid),display,\
Qt::WindowMinMaxButtonsHint|Qt::WindowCloseButtonHint
|Qt::WindowCancelButtonHint
|Qt::FramelessWindowHint);
vl -> addWidget(window);
qDebug()<<"addWidget";
}
void MainWindow::finish(int,QProcess::ExitStatus)
{
qDebug()<<"finish";
}
void MainWindow::createMenus()
{
fileMenu = menuBar()->addMenu(tr("&File"));
fileMenu->addAction(HelloTestAct);
}
MainWindow :: ~MainWindow()
{
}
To copy to clipboard, switch view to plain text mode
applicationwindow.cpp
----------------------
#include "applicationwindow.h"
#include <QtWidgets/qwidget.h>
ApplicationWindow
::ApplicationWindow(QWidget *parent
) :{
}
ApplicationWindow
::ApplicationWindow(int min_width,
int min_height,
int max_width,
int max_height,
QWidget* parent
) :min_width
(min_width
),min_height
(min_height
),max_width
(max_width
),max_height
(max_height
),
QWidget(parent
) {
}
ApplicationWindow::~ApplicationWindow()
{
}
QWidget* ApplicationWindow
::createApplicationWindow() {
window->setMouseTracking(true);
window->setMinimumSize(min_width,min_height);
window->setMaximumSize(max_width,max_height);
return window;
}
#include "applicationwindow.h"
#include <QtWidgets/qwidget.h>
ApplicationWindow::ApplicationWindow(QWidget *parent) :
QWidget(parent)
{
}
ApplicationWindow::ApplicationWindow(int min_width,int min_height,int max_width,int max_height,QWidget* parent)
:min_width(min_width),min_height(min_height),max_width(max_width),max_height(max_height),QWidget(parent)
{
}
ApplicationWindow::~ApplicationWindow()
{
}
QWidget* ApplicationWindow::createApplicationWindow()
{
window = new QWidget;
window->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
window->setMouseTracking(true);
window->setMinimumSize(min_width,min_height);
window->setMaximumSize(max_width,max_height);
return window;
}
To copy to clipboard, switch view to plain text mode
mainwindow.h
---------------
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include<QtWidgets/QMainWindow>
#include <QtWidgets/QDialog>
#include <QtGui>
#include <QtWidgets/qwidget.h>
#include <QProcess>
#include <QString>
#include "applicationwindow.h"
{
Q_OBJECT
public:
~MainWindow();
void embed_window(int id);
private:
int max_width;
int max_height;
int min_width;
int min_height;
ApplicationWindow* appwindow;
private:
void createActions();
void createMenus();
void getDisplayProperties(int* width,int* height);
void setWindowMinimumSizes(int min_width,int min_height);
void setWindowMaximumSizes(int min_width,int max_width);
public slots:
void Launch_Hello_Test();
void launch_app(int id);
void readStandardOutput();
void readStandardError();
signals:
void send_winid(int id);
};
#endif // MAINWINDOW_H
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include<QtWidgets/QMainWindow>
#include <QtWidgets/QDialog>
#include <QtGui>
#include <QtWidgets/qwidget.h>
#include <QProcess>
#include <QString>
#include "applicationwindow.h"
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
void embed_window(int id);
QProcess *process;
private:
QProcess* ApplicationProcess;
int max_width;
int max_height;
int min_width;
int min_height;
QMenu *fileMenu;
QWidget* mainwindow;
ApplicationWindow* appwindow;
QHBoxLayout* mainLayout;
QVBoxLayout* vLayout;
QWidget* vWidget;
QWidget* display;
QAction* HelloTestAct;
QWidget* window;
private:
void createActions();
void createMenus();
void getDisplayProperties(int* width,int* height);
void setWindowMinimumSizes(int min_width,int min_height);
void setWindowMaximumSizes(int min_width,int max_width);
public slots:
void Launch_Hello_Test();
void finish(int,QProcess::ExitStatus);
void launch_app(int id);
void readStandardOutput();
void readStandardError();
signals:
void send_winid(int id);
};
#endif // MAINWINDOW_H
To copy to clipboard, switch view to plain text mode
applicationwindow.h
-------------------
#ifndef APPLICATIONWINDOW_H
#define APPLICATIONWINDOW_H
#include <QtWidgets/QtWidgets>
class ApplicationWindow
: public QWidget{
Q_OBJECT
public:
explicit ApplicationWindow
(QWidget *parent
= 0);
explicit ApplicationWindow
(int min_width,
int min_height,
int max_width,
int max_height,
QWidget* parent
=0);
QWidget * createApplicationWindow
();
public:
virtual ~ApplicationWindow();
private:
int max_width;
int max_height;
int min_width;
int min_height;
signals:
public slots:
};
#endif
// APPLICATIONWINDOW_H
#ifndef APPLICATIONWINDOW_H
#define APPLICATIONWINDOW_H
#include <QtWidgets/QtWidgets>
class ApplicationWindow : public QWidget
{
Q_OBJECT
public:
explicit ApplicationWindow(QWidget *parent = 0);
explicit ApplicationWindow(int min_width,int min_height,int max_width,int max_height,QWidget* parent=0);
QWidget * createApplicationWindow();
public:
virtual ~ApplicationWindow();
private:
int max_width;
int max_height;
int min_width;
int min_height;
QWidget* window;
signals:
public slots:
};
#endif
// APPLICATIONWINDOW_H
To copy to clipboard, switch view to plain text mode
Bookmarks