Example #1
0
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Communicate window;
window.setWindowTitle("Communicate");
window.show();
return app.exec();
}
Example #2
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QTextCodec::setCodecForTr(QTextCodec::codecForLocale());
    Communicate w;
    w.show();
    return a.exec();
}
Example #3
0
int main(int argc, char *argv[])
{

  int WIDTH = 250;
  int HEIGHT = 150;

  int screenWidth;
  int screenHeight;

  int x, y;

  QApplication app(argc, argv);

  // QWidget window;
  // Cursors window;
  // MyButton window;
  Communicate window;


  QDesktopWidget *desktop = QApplication::desktop();

  screenWidth = desktop->width();
  screenHeight = desktop->height(); 

  x = (screenWidth - WIDTH) / 2;
  y = (screenHeight - HEIGHT) / 2;

  window.resize(WIDTH, HEIGHT);
  window.move( x, y );
  window.setWindowTitle("Center");

  window.setWindowTitle("ToolTip");
  window.setToolTip("QWidget");

  window.setWindowTitle("icon");
  window.setWindowIcon(QIcon("web.png"));
  window.show();

  return app.exec();
}
Example #4
0
CommunicateGroup::CommunicateGroup(Communicate& acomm, int ndiv):
  Communicate(acomm.split(ndiv)), parent(acomm)
{
}