Solved Unable to resize QMainWindow in Xfce Xbuntu
-
I have a QTMainWindow and the resize property by dragging mouse at edges works absolutely fine in Windows, Linux and ubuntu.
But when the same action is carried in Xbuntu Xfce it moves the window instead of resizing. -
@Abhi_oct30 I don't think this is related to Qt - Qt does not handle window moving. This is XFCE. You most probably didn't position the mouse cursor over the edge of the window. I used XFCE and with some of its themes it is hard to position the cursor exactly because this edges are very thin.
-
Hi Jsulum,
The mouse pointer is when i point to right bottom corner but when I click and move the mouse the icon changes to . That too at the bottom
-
@Abhi_oct30 Is it same with other applications? With Qt and non Qt applications?
-
Also as a note,
im using Mint + XFCE as main linux dev desktop and resize works fine. -
@jsulm it is observed only with Qt applications
-
@Abhi_oct30 With your own Qt applications or with all?
-
@jsulm my own QT application.....But the same application works properly in CentOs and Ubuntu..Only problem is with Xfce Xubuntu
-
@Abhi_oct30 So, Qt applications coming with your Linux distribution work properly?
Do you do anything special in your app regarding resizing? Does it have a fix size? -
No nothing specific to resize is being done.
-
@Abhi_oct30 Qt applications coming with your Linux distribution work properly?
-
I found the fix. The issue is with the Xbuntu Xfce which i am using . The latest revision of Xubuntu is not having this issue.
What happens is at one place in my code the maximum and minimum window size is set as same which is changed later.But this version of Xfce locks the resize flag for the first time and is not unlocked later.
The issue was fixed simply by setting different values in minimum and maximum window size
Reported issue:https://bugzilla.xfce.org/show_bug.cgi?id=12176