This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Hide Minimize and Maximize buttons of the main window - Kubu

Tags: None
(comma "," separated)
vanadiumboy
Registered Member
Posts
16
Karma
0
TITLE=
Hide Minimize and Maximize buttons of the main window - Kubuntu 20.10


Allo,
I am on Kubuntu 20.10.
I have Qt Creator 4.14.2, it says based on Qt 5.15.2 (GCC 7.3.1 20180303 (Red Hat 7.3.1-5), 64 bit)

WHAT WORKS:
I can disable the Minimize and Maximize buttons.
The window cannot be resized.

THE PROBLEM IS:
I can still see the Minimize and Maximize buttons.
Code: Select all
MyProject::MyProject(QWidget *parent, QString &filePath)
   : QMainWindow(parent)
   , ui(new Ui::MyProject)
{

ui->setupUi(this);
setFixedSize(size());

setGeometry(WindowPosition[0], WindowPosition[1], ClientWindowSize[0], ClientWindowSize[1]);
setWindowTitle(ApplicationTitle);
}

That’s not the entire constructor. I cut out most of the fat.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]