python - Qt Designer - clickable area to generate map -


using python 2.7.3 , qt designer 4.8.2: i'm new qt, how may create simple grid area clickable generate map? image below illustrates intend.

in essence main issue grid area, i'm unable see 'off shelf' within qt.

enter image description here

one (clunky?) solution draw map image using label widget pixmap set. can achieve click-ability listening mousepressevent on widget, upon can qmouseevent object contains mouse x, y position (both global , relative clicked widget). can used determine on image clicked.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -