Guillaume wrote: >> Yeah -- you see if you have beams or ties, then they are drawn onto >> the same pixmap and so greatly extend its width, and of course its >> effective area, as the underlying pixmap is rectangular. > >Which brings up again the question of having our own QCanvasItems for these, >though it's clear that performance-wise, QCanvasPixmaps are quite good...
Without having studied the relevant code yet, I wonder whether there isn't an easy solution for reducing the size of the capture zone around tied chorded notes. Wouldn't it be quick and easy to read the value of the pixel in the QCanvasPixmap at the coordinates of the mouse button double-click. If the pixel value is black/blue, then the user has hit a note, a stem or a flag, and the properties window is popped up. If the pixel value is non-black/blue (grey/white background), then the user has hit the background, and the current bar is selected and highlighted. The capture zone around tied chorded notes would now be the union of their foreground elements making up the QCanvasPixmap, which is much smaller than the least enclosing rectangle of those elements. Wouldn't this work and be easy to implement? Which .cpp file has the code for detecting and reacting to a user's double-click on a canvas? William ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Rosegarden-devel mailing list [EMAIL PROTECTED] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
