?Hi,

did you already tried QWindow::FullScreen? 
https://doc.qt.io/qt-5/qwindow.html#Visibility-enum


Best,

Stefan


________________________________
Von: p...@zjut.edu.cn <p...@zjut.edu.cn>
Gesendet: Dienstag, 20. Oktober 2020 04:12
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] How to generate a full screen frameless blueberry 
application?

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