Creating a tool that gets coordinates of selected object
Posted: Mon Nov 18, 2013 9:44 pm
Hi friends. Specially dear Andrew!
I need to create a new tool that extracts properties of selected object(x, y, width, height) and processes them and displays a result to the user. For example suppose this scenario :
1-User selects a car in his map ( opened in QCad )
2-User selects my tool(from toolbar or menubar)
3-(Here is the problem!) My tool gets x,y,w,h of selected car and produces a result based on these four numbers and displays a message box to the user.
I can create new tool (I've read this : http://www.qcad.org/doc/qcad/3.0/develo ... _tool.html!) But first of all I want to know whether it's possible doing such a task completely in Qt(processing the x,y,w,h numbers)?
Second I need a start point for how to do this task?
Thank you guys!
I need to create a new tool that extracts properties of selected object(x, y, width, height) and processes them and displays a result to the user. For example suppose this scenario :
1-User selects a car in his map ( opened in QCad )
2-User selects my tool(from toolbar or menubar)
3-(Here is the problem!) My tool gets x,y,w,h of selected car and produces a result based on these four numbers and displays a message box to the user.
I can create new tool (I've read this : http://www.qcad.org/doc/qcad/3.0/develo ... _tool.html!) But first of all I want to know whether it's possible doing such a task completely in Qt(processing the x,y,w,h numbers)?
Second I need a start point for how to do this task?
Thank you guys!