Search found 18 matches

by s4eed
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: 4697

Where to do some clean up stuff while file is being closed?

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.
by s4eed
Tue May 13, 2014 8:51 am
Forum: QCAD Programming, Script Programming and Contributing
Topic: Removing an image entity
Replies: 1
Views: 4275

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...
by s4eed
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: 6575

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 *.
by s4eed
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: 4312

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.
by s4eed
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: 6575

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?
by s4eed
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: 4642

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
by s4eed
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: 7903

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.
by s4eed
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: 7903

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...
by s4eed
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: 5655

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...
by s4eed
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: 9667

Re: Creating a tool that gets coordinates of selected object

I've never seen someone conscientious like you Andrew. Again thank you.
by s4eed
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: 9667

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?
by s4eed
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: 9667

Re: Creating a tool that gets coordinates of selected object

:D Really thank you ! But how can I create a tool completely in Qt.That's my problem, not showing a message :D . Is there any tutorial?
by s4eed
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: 9667

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...
by s4eed
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: 14328

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 !
by s4eed
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: 14328

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...

Go to advanced search