PSQt/src/set_window.cpp

Go to the documentation of this file.
00001 //---------------------------------------------------------------------
00002 // File and Version Information:
00003 //   $Id: set_window.cpp 9841 2015-03-26 18:35:44Z dubrovin@SLAC.STANFORD.EDU $
00004 //
00005 // Author: Mikhail S. Dubrovin
00006 //---------------------------------------------------------------------
00007 
00008 
00009 #include "PSQt/set_window.h"
00010 #include <QDesktopWidget>
00011 #include <QApplication>
00012 #include <iostream>
00013 
00014 namespace PSQt {
00015 
00016 void set_window(QWidget &widget, int x, int y)
00017 {
00018   QDesktopWidget *desktop = QApplication::desktop();
00019 
00020   int WIDTH = 350;
00021   int HEIGHT = 280;
00022   int screenWidth  = desktop->width();
00023   int screenHeight = desktop->height();
00024 
00025   std::cout << "screen Width and Height:" << screenWidth << " " << screenHeight << std::endl;
00026 
00027   widget.setGeometry(x, y, WIDTH, HEIGHT);
00028 }
00029 
00030 } // namespace PSQt

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7