Login  Register

Re: Segmentation fault in RS_EntityContainer::optimizeContours()

Posted by R. van Twisk on Apr 24, 2012; 1:07am
URL: https://forum.librecad.org/Segmentation-fault-in-RS-EntityContainer-optimizeContours-tp5651061p5660826.html


On Apr 23, 2012, at 1:31 PM, dxli [via LibreCAD] wrote:

I feel we should try to generate UI more by C++ rather than by UI forms, because it's easier to maintain C++.

Quite often, a minor change in a UI form results in 90% change of the file, harder to track changes.

I know we are getting OT here.

In my experience UI work is only a very small part of the total development time of a application.
However, when a UI was build programmatically you can get into a lot of re-compile and test stages because
you cannot always see the UI and of the underlaying framework responds to the changes you make.

Additionally, little changes in the UI, even build programmatically can also result in a larger set of changes,
eg, not only the XY/Y position of the button changes.

For example when you move a button from one area to a other area, you will see multiple lines being changed. 
You would need to move code around and put the button in a different area of your program.
Given ofcourse you build the UI with proer spacers and 'fluid' rater then fixed positions.

Within QT a UI is build within .ui file that get's compiled into a cpp+h file. However, any change in
the UI file doesn't get reflected into the program separating the concerns of UI (view) and program
even better. If a button is moved we really don't care about how this was reflected in the UI file. We only
care about the bugtrack entry showing the reasons. Our code would even stay exactly the same so
in my opinion, building the UI graphically, in our case with UI designer would be more of a benefit

Qt does have some very nice systems in place, see : http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
and even allows for auto-creating connections between the slots and the UI. This allows writing
even less code and plain simple this reduces maintenance.

Ries




Dongxu

On Mon, Apr 23, 2012 at 1:59 PM, R. van Twisk [via LibreCAD] <<a href="x-msg://297/user/SendEmail.jtp?type=node&amp;node=5660136&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]> wrote:
Erik,

if you have the knowledge then you can use anything you like.

I use eclipse on a daily base myself (java + flex work) and it's not a bad IDE.
I am not sure how the GUI designers works in Ecli`se though, but you won't need that
very often. 
We only have to make sure that whatever we do, it needs to compile on Windows, OSX and Linux.
and that we use qmake to generate the makefiles.

Ries




On Apr 23, 2012, at 12:33 PM, Erik [via LibreCAD] wrote:

Hello,

thanks to all.

What do you think about eclipse +cbt +egit +qt integration.

My first test are looking very well.

But I want to try Qt-Creator, too.

According to debugging, I'm using gdb in the past, too. Now I'm using mostly ddd the graphical frontend, because in my opion it's muche more confortable.

Best Regards,

Erik


If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/Segmentation-fault-in-RS-EntityContainer-optimizeContours-tp5651061p5660009.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML




If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/Segmentation-fault-in-RS-EntityContainer-optimizeContours-tp5651061p5660069.html
To start a new topic under LibreCAD-dev, email <a href="x-msg://297/user/SendEmail.jtp?type=node&amp;node=5660136&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]
To unsubscribe from LibreCAD-dev, <a href="x-msg://297/" target="_blank" rel="nofollow" link="external">click here.
NAML



--
Dongxu Li, Ph.D.
www.librecad.org




If you reply to this email, your message will be added to the discussion below:
http://forum.librecad.org/Segmentation-fault-in-RS-EntityContainer-optimizeContours-tp5651061p5660136.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.
NAML