[Qgis-developer] Re: [Qgis-user] Offset curve tool

Marco Hugentobler marco.hugentobler at sourcepole.ch
Wed Feb 29 08:11:35 EST 2012


 >Ahh this makes sense.  Having the tool follow the mouse cursor is 
something that I was thinking about trying with some other tools, now I 
have something to model that off. >Bugger about the bug on X11, in that 
case it would be best to have a window.
 >Is it possible to do a frameless modeless dialog with the widget 
inside and have it follow the cursor?  Or does this have the same issue.

That could work, afaik only QGraphicsProxyWidgets are affected. If the 
widget is on top of the graphics scene, there should be no problem.

On the other hand, having a floating widget (like measuring tools) would 
allow to present the options which are now in the digitizing tab of the 
options dialog. So I'm thinking about implementing it that way.

Regards,
Marco

On 29.02.2012 12:43, Nathan Woodrow wrote:
> On Wed, Feb 29, 2012 at 9:17 PM, Marco Hugentobler 
> <marco.hugentobler at sourcepole.ch 
> <mailto:marco.hugentobler at sourcepole.ch>> wrote:
>
>     On Mac OS and Windows, the spin box is placed next to the cursor
>     and moves with it. On X11, I had to disable that because there is
>     a problem embedding widget items if the flag Qt::WA_PaintOnScreen
>     is set on the canvas.
>     But yes, it might be better to have a separate window on X11.
>
>
> Ahh this makes sense.  Having the tool follow the mouse cursor is 
> something that I was thinking about trying with some other tools, now 
> I have something to model that off.  Bugger about the bug on X11, in 
> that case it would be best to have a window.
>
> Is it possible to do a frameless modeless dialog with the widget 
> inside and have it follow the cursor?  Or does this have the same issue.
>
>     >Also if editing the value doesn't change the result of the tool I
>     would think it would be good as read-only. I tried to edit it in
>     order to order to supply a offset of 3 and nothing >happened.
>
>     It is intended that editing changes the result. After pressing the
>     return key, the offset line should move to the new distance (but
>     the mouse should not be moved, otherwise it will be overriden by
>     the following mouse move position). Doesn't this work for you?
>
>
> Seems to not on my machine.  Running Linux Mint 11
>
> - Nathan


-- 
Dr. Marco Hugentobler
Sourcepole -  Linux&  Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120229/7d5e1045/attachment.html


More information about the Qgis-developer mailing list