Remi-C / interactive_map_tracking

A QGIS 2.6 plugin to track camera of user , AND/OR to autocommit/refresh edit on PostGIS vector layer
http://remi-c.github.io/interactive_map_tracking/
GNU General Public License v3.0
8 stars 4 forks source link

Popup size wrong on GNOME3 #6

Closed pcav closed 9 years ago

pcav commented 9 years ago

And not resizable. See attached pics. Font size in the second image too small. inter2 inter1

Remi-C commented 9 years ago

Thank you @pcav for reviewing uour plugin, any comment is welcom. We have a work in progress by @yoyonel for dev doc (#3) https://github.com/Remi-C/interactive_map_tracking/wiki/%5Bdev%5D-Detailled-doc Cheers, Rémi-C

pcav commented 9 years ago

BTW: as you can see from the screenshot, the Close / OK buttons are missing in Gnome3. An issue common also to other plugins.

Remi-C commented 9 years ago

Do you know a good direction to look for a fix? Is this specific to PyQT or QGIS?

yoyonel commented 9 years ago

I work under Mintx64/KDE Desktop and Windows 7 (x64). No issues on this OS/Windows Manager. I will try to switch under Gnome3 soon. Thx for you comment @pcav ^^

pcav commented 9 years ago

Please have a look to OL3 plugin, which solved the issue recently. Even better, ask on the mailing list, so more peop0le will be aware of this.

Remi-C commented 9 years ago

Thanks @pcav , @yoyonel , OL3 is the plugin Open Layer 3 that is here, I let you start the thread ?

yoyonel commented 9 years ago

@Remi-C , I don't see anything about our problem in issues tracking : https://github.com/volaya/qgis-ol3/issues

Remi-C commented 9 years ago

I guess we have to look to UI files to find what is different from ours. Maybe they don't use the same QT classes as us :

pcav commented 9 years ago

It's a recent change in the code, not a ticket. Sorry I have no time to check now.

yoyonel commented 9 years ago

Tested on : $ gnome-session --version gnome-session 3.9.90 Seems to work properly now.

Remi-C commented 9 years ago

@pcav : the problem seems to be fixed. The solution seems to be to not set size :

# dont set size like this --> self.dlg.setFixedSize(self.dlg.size())

To use a layout

Then allow resizing ``` QFormLayout::AllNonFixedFieldsGrow ```
yoyonel commented 9 years ago

Yep, but it's not just this line to fix the problem. I rearranged layouts for each tab in our plugin windows. Add forms layout and spacersto get a good behaviour when resized