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

KDE seems to steal move-event from my Qt application

Tags: None
(comma "," separated)
paddlaren
Registered Member
Posts
8
Karma
0
Hi!

I have a pure Qt application called Basqet, a note taking application and there seems to be an issue when running on KDE.

The relevant area of the application is a "note page", a scrollable widget, where there are note widgets on.

When I wrote the application around November 2009, I could grab the border of a note (click and move mouse) and move or resize the note.

Now, some KDE versions later but with no changes to the application I cannot do that any more. If I click and move on the note page and most of the border areas (a QWidget with a QGroupBox with a QHorizontalSplitter with 2 QTextAreas) the entire application window will move. I have to be precisely on certain parts of the border to make it work.
The same goes when I click and drag on the empty parts of the menu bar etc etc.

I had 2 event filters for the GroupBox and the TextArea before, catching any mouse clicks. Now I have 8 event filters, one for each part of the note widget and it will still not catch all mouse clicks.

Please, can anyone help me disable the click-background-areas-and-move-application-window behaviour for a selection of widgets? Or have I misunderstood something vital here? The application DID work properly on KDE 4.4 using Qt 4.5 or so (I am not certain, what ever was recent novmeber 2009).

I usually have the latest non-masked KDE and Qt from Gentoo, i.e. KDE 4.6.0 and Qt 4.7.

You can find the application on Google Code: http://code.google.com/p/basqet/ and the relevant code is located under
Code: Select all
releases/release_0.2/pageview
and mainly the files:
Code: Select all
pagenotewidget.cpp
pagenotewidgeteventfilter.cpp
notepadpage.cpp


Best Regards,
Erik
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This is a feature of Oxygen, the KDE style. I suggest using "oxygen-settings" to adjust the "Windows drag mode" feature. Please contact the maintainer of Oxygen via the kde-devel@kde.org mailing list to see if there is a way of programatically switching this feature off for your application by marking the areas as in use.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft