On 05/13/2011 07:41 PM, Hugo Pereira Da Costa wrote: > Hello Nikos, >> I noticed that when running in KDE and using the Oxygen style, the >> windows of my Qt application can be dragged around with the mouse by >> clicking on any area in the window, not just the title bar. But it >> behaves strange in my application: window dragging only works in parts >> of the window that have nothing in them yet. >> > Yes. That's the intended behavior of the feature. > "Drag window from empty areas".
But in my case, the area is not really empty. It's Oxygen that thinks it is. I guess a picture is worth a thousand words, so take a look at this: http://i52.tinypic.com/6r0fp4.png The window can be dragged in the lower part of the star field (below the "press any key" text). This shouldn't be possible. >> Note that dragging in those areas shouldn't be possible to begin with. > "To begin with", Why so ? This feature was asked by several people, > already supported in other styles (bespin, qtcurve), accepted inside > kde, and added to oxygen since kde4.5. Also, it can be disabled in the > front page of "oxygen-settings". Yes, it's a nice feature. And I like it even :-) It's just that I need to control it in my application because it behaves a bit wrong. >> So the question is: is there a way I can disable this for specific QWidgets? >> >> If you wonder about the details of my situation: I use a QScrollArea to >> display a QWidget (where I'm drawing stuff using custom painting). When >> the QWidget is small and doesn't yet fill the entire QScrollArea, the >> not yet filled areas are "draggable". When the QWidget expands and >> covers these areas, window dragging stops working. >> > Again that's the expected behavior, that users, used to the feature > above, expect, since the not yet covered part of the scrolled area, is > considered empty. Which in my case isn't empty :-) There's no reason, from the user's point of view, why dragging is possible below the text but not possible above it. Does this btw look more like a bug in Oxygen? Should I report it? To me it looks more like it's behaving correctly, but one type of behavior can't possibly fit all use cases out there, one of which happens to me mine. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<