Painting a TCanvas to the screen in a compiled ROOT (CERN) application

我的梦境 提交于 2019-12-01 06:26:18

I usually use TApplications like below to have TCanvases really appear as window on the screen.

#include "TApplication.h"
// other stuff

int main(int argc, char** argv) {
  TApplication theApp("App",&argc, argv);
  // your code
  // here you can Draw() things
  theApp.Run();
  return 0;
}

The program then just stops at Run() and I end the process with ^C.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!