Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Drawing atop a scrollable, zoomable image in Qt -


i'm sorry if question vague. it's been few years since did qt, , never did fancy image stuff. i'm asking below general suggestions on classes consider using. i'm trying avoid barking wrong tree start.

the situation: i'm writing qt-based program in need display large (let's 5000x5000) raster image. user should able zoom (quickly) in , out, , pan around image in way similar example google maps. far, not different the qt imageviewer example, except perhaps requirement zooming happens quickly. however, need draw on order of 50k simple geometric shapes (let's circles) on top of image, , able add , remove of these in simple way. circles should have same size no matter zoom level, , should either redrawn whenever user zooms, or should drawn vector graphics. think of circles map annotations. these should same @ zoom level, , behave nicely respect panning.

i guess question twofold:

  1. can qt draw vector graphics on top of raster image?
  2. in general, classes should consider above?

thanks in advance. don't answering vague questions myself, maybe experience qt's graphics capabilities has answer.

i suggest use qgraphicsview , friends this. helps handling view/world transformation , vector items can achieved various qgraphicsitems.

you can change sizes of items whenever zoom level changes maintain constant apparent sizes.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -