Unsolved NO cancel "X" appears in Qt application window
-
Hello, In my application i have 2 windows when i ran my Qt widget program it built correctly . In application output for first window there is no the cancel 'X' in the right-upper corner and also no title displayed which i set using setWindowtitle() but it appears in second window. So how to get cancel option for first window too?
-
Hi @shree_121,
can you please show a screenshot of your problem?
-
hi@aha_1980, Here is my screensho
.
in corner u can see no 'X' and when this screen appears on screen all background desktop functions also disabled. -
Hi
Do you call setWindowsFlags or something?
Also this is on windows ? -
hi@mrji, I called setWindowTitle() and setFixedSize(). This is on centos 7.
-
@shree_121
hi
Just to rule out a broken installation.
Could you try a default GUI project? -
yes i am using default GUI project.
-
@shree_121 Do you run a window manager?
-
@jsulm No.
-
@shree_121
hehe. well the windows manager draws the decorations.
so no windows manager, no decorations such as frames and close icons etc. :)