Hi everyone,

 

I want to develop a standalone application based on blueberry application
framework, but get stuck in generating a full screen frameless application
which can hide the taskbar.

I added sth like

berry::IWorkbenchWindowConfigurer::Pointer configurer =
this->GetWindowConfigurer();

       configurer->SetWindowFlags(Qt::Window | Qt::FramelessWindowHint);

in the MyWorkbenchWindowAdvisor::PostWindowCreate() function but it doesn't
work. 

 

Then I modified 

this->shellStyle = Constants::SHELL_TRIM;

to

this->shellStyle = Constants::MODELESS;

in Window::Init() in berryWindow.cpp

The frame disappeared but when I maximized the window using

QScreen *screen = QGuiApplication::primaryScreen();

       QRect rect = screen->availableGeometry();

       configurer->SetInitialSize(QPoint(rect.width(), rect.height()));

in MyWorkbenchWindowAdvisor::PostWindowCreate(), the taskbar is still there.

 

I want to ask:

1. Is there any better way to generate a frameless window without modifying
the source code of blueberry?

2. How can I maximize the window to hide the taskbar in the blueberry
framework?

 

Thanks!

 

Dr. Qing PAN

Associate Professor

College of Information Engineering

Zhejiang University of Technology

288 Liuhe Road, 310023 Hangzhou China

Phone: +86-85290595

Email: p...@zjut.edu.cn

 

_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to