I need to be as big as the screen.
Before I used this code to display it as big as the screen
int Height = 0;
int Width = 0;
foreach (QScreen *screen, QGuiApplication::screens()) {
if(QGuiApplication::primaryScreen()->name() == screen->name())
{
QRect rec = screen->availableGeometry();
Height = rec.height();
Width = rec.width();
}
}
w.setFixedSize(Width,Height);
Unfortunately, I do not know why, the height is still longer than the screen. This is why I decided to use showMaximized (), unfortunately this does not seem to go well for both systems.