I'm developing my own app based on QCad application framework.
I want to close the database connection, clean up some widgets and do some other clean up stuff while a document is being closed in my program. Where should do these kind of works.
Search found 18 matches
- Tue Jul 22, 2014 9:44 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Where to do some clean up stuff while file is being closed?
- Replies: 1
- Views: 4712
- Tue May 13, 2014 8:51 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Removing an image entity
- Replies: 1
- Views: 4292
Removing an image entity
Hello dear friends. I add an image entity to my map using this code : var i = new RImageEntity( document, new RImageData("scripts/MyScripts/tick.png", new RVector(0,0), new RVector(1,0), new RVector(0,1), 50, 50, 0) ); documentInterface.setRelativeZero(point); i.setWidth(2); i.setHeight(2); i.setIns...
- Sun Apr 20, 2014 11:30 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Update a table when user switches between opened tabs
- Replies: 3
- Views: 6609
Re: Update a table when user switches between opened tabs
Thanks but I got this error :
Code: Select all
RMainWindow: Argument 0 is not of type RViewFocusListener *RViewFocusListener *.
- Sun Apr 20, 2014 10:12 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Adding a exclamation mark to a map just for preview?
- Replies: 1
- Views: 4335
Adding a exclamation mark to a map just for preview?
Hi friends especially dear Andrew.
I want to add several exclamation marks(For example a .png file) to my documents in some predefined points just for alerting the user that these points in map have a problem. I do not want the document to be modified.
Something like what I attached.
I want to add several exclamation marks(For example a .png file) to my documents in some predefined points just for alerting the user that these points in map have a problem. I do not want the document to be modified.
Something like what I attached.
- Tue Apr 15, 2014 7:45 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Update a table when user switches between opened tabs
- Replies: 3
- Views: 6609
Update a table when user switches between opened tabs
Hi everyone.
I created a program based on the QCad Application framework that has a QTableWidget in a QDockWidget. I need to update contents of this table when user switches between opened files in the application. How can I be informed that user has selected a new tab in MDI area?
I created a program based on the QCad Application framework that has a QTableWidget in a QDockWidget. I need to update contents of this table when user switches between opened files in the application. How can I be informed that user has selected a new tab in MDI area?
- Sun Apr 13, 2014 8:37 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Set Drawing unit to centimeter as default
- Replies: 1
- Views: 4669
Set Drawing unit to centimeter as default
Hi everyone!
I need to set drawing unit to centimeter programmatically. Is it possible? for example i want to set it inside autostart.js
I need to set drawing unit to centimeter programmatically. Is it possible? for example i want to set it inside autostart.js
- Mon Nov 25, 2013 11:56 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: QCad based app and Qcad itself load a dxf file differently!
- Replies: 2
- Views: 7951
Re: QCad based app and Qcad itself load a dxf file different
You're welcome. I'm happy for my first contribution to this great software.
- Sun Nov 24, 2013 6:52 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: QCad based app and Qcad itself load a dxf file differently!
- Replies: 2
- Views: 7951
QCad based app and Qcad itself load a dxf file differently!
Hi dear users specially dear Andrew. I tired to create new app based on QCad using this question ( http://www.qcad.org/rsforum/viewtopic.php?f=30&t=2675 ). Every thing is OK and I changed some of scripts and added some new scripts to my own app.some of them was deleted. But now when I load a dxf fil...
- Sat Nov 23, 2013 10:06 am
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: completely new application based on QCad framework
- Replies: 1
- Views: 5693
completely new application based on QCad framework
Hi dear users specially dear Andrew! :D I'm going to create a new application based on QCad application framework. Searching through the net didn't have a useful result. So what't the way? Should I create my own menus and actions based on tutorials on the QCad site and just run QCad.exe itself? I tr...
- Mon Nov 18, 2013 10:22 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Creating a tool that gets coordinates of selected object
- Replies: 5
- Views: 9805
Re: Creating a tool that gets coordinates of selected object
I've never seen someone conscientious like you Andrew. Again thank you.
- Mon Nov 18, 2013 10:11 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Creating a tool that gets coordinates of selected object
- Replies: 5
- Views: 9805
Re: Creating a tool that gets coordinates of selected object
Got It ! I can use every Qt classes in my .js file. Is it true?
- Mon Nov 18, 2013 10:10 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Creating a tool that gets coordinates of selected object
- Replies: 5
- Views: 9805
Re: Creating a tool that gets coordinates of selected object
Really thank you ! But how can I create a tool completely in Qt.That's my problem, not showing a message . Is there any tutorial?
- Mon Nov 18, 2013 9:44 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: Creating a tool that gets coordinates of selected object
- Replies: 5
- Views: 9805
Creating a tool that gets coordinates of selected object
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 too...
- Sat Sep 28, 2013 9:58 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: How to add zooming capabilities to RGraphicsViewQt
- Replies: 6
- Views: 14522
Re: How to add zooming capabilities to RGraphicsViewQt
I can't say anything YOU ARE AWESOME :-* . GREAT APPLICATION .
Excuse me because of this off topic !
Excuse me because of this off topic !
- Sat Sep 28, 2013 9:13 pm
- Forum: QCAD Programming, Script Programming and Contributing
- Topic: How to add zooming capabilities to RGraphicsViewQt
- Replies: 6
- Views: 14522
How to add zooming capabilities to RGraphicsViewQt
I successfully loaded a DXF file using this code : RGraphicsViewQt *view = new RGraphicsViewQt; RMemoryStorage* storage = new RMemoryStorage(); RSpatialIndexNavel* spatialIndex = new RSpatialIndexNavel(); RDocument * document = new RDocument(*storage, *spatialIndex); RDxfImporter *importer = new RDx...