I'm about to make a program (qt/gtk) where I need to display some kind of UML diagrams (like in BlueJ),
I wanted to ask you if there is such a component in GTK
It must work with new version of Gtk - gi.repository
The name of library is enough for me, I'll read docs, but if somebody post here some simple demo, it'll be appreciated.
Thank you
Dia (Old homepage) is a GTK based UML drawing tool. It is a very good tool with a lot of options. It is available on a number distros from their repositories. It has both application & library (libdia) components. There are python bindings available as well. If you have not checked it out, you should.
Hope this helps!
I found gaphas
You should checkout GooCanvas, I think is the more complete library for that kind of work.
I use python and pygtk, and use matplotlib to draw graphs in the GUI.
See a sample here : http://www.serpia.org/blog/2007/nov/03/matplotlib-and-pygtk-app/
Related
I am developing a qml app in qt5 with circular gauge. I want to port application qt 6. But in qt 6 qtquick extras is missing, so circular gauge is not available. Is qt planning to make it available in next releases of qt6? What can I do instead of using circular gauge in qt6?
Is there anyone who knows about it?
As far as I know there are no plans yet to port it to Qt 6. You could create a suggestion on Jira to express your interest in having it.
The code is here and here if you want to try to port it yourself or just use parts of it (keeping in mind the license, which is LGPL).
As you stated in the question, CircularGauge is not available in Qt6. So what can you do?
As a minimal effort, you can substitute CircularGauge with a functional similar component, for instance, RangeSlider. Of course, a RangeSlider looks nothing like a CircularGauge, but, it will, at least, allow you to compile and run your application. It will give you an application to test whilst you decide your options.
Then, as others have stated, you need to spend more effort allocated to porting. If you refer to the source code of CircularGauge, you see that they're using Canvas with a custom onPaint implementation. You could do the same in your port, or, you can find an alternative, e.g. Shape with ShapePath, etc. These efforts are non-trivial, and it boils down to the level of effort you wish to invest.
when I develop a custom language IDE using avalonedit, I encountered a problem. I use regex to check the syntax, and it works as designed. However, I want to show the syntax error with wave text mark. I did search at google, yet the solution is either outdated or not feasible. Any ideas? Thanks ahead.
AvalonEdit does not have this functionality built-in. However it provides all the infrastructure needed to implement it yourself. In the SharpDevelop IDE we have an implementation that should suit your needs.
You'll need some of the code from the SharpDevelop repository (https://github.com/icsharpcode/SharpDevelop/):
TextMarkerService, TextMarker
and its related interfaces and enums.
To make it easier for you, I have created a small sample application:
https://github.com/siegfriedpammer/AvalonEditSamples/tree/master/TextMarkerSample
It uses the AvalonEdit 5 nuget package and contains the classes mentioned above, plus a WPF Window to test it.
I want to do multi language support for my QT Application ?
Can Anybody guide me what are the steps involved to achieve that ?
Thanks.
Qt has great documentation.
*updated to the current one.
Practical advice: tr() all your user-facing strings. Get this sorted from the beginning and you can retrofit multi-language support later when you have time to figure it out.
This goes for control-key sequences in menu labels and everything.
Once I've seen a nice tool called .NET Reflector. It can show the entire object hierarchy of .Net binaries/apps (sorry if the term is wrong).
Is there something like this for Qt? As Qt has very good QMetaObject abilities, it should be possible to traverse object-trees, call methods(slots), change properties, etc.
I am currently re-factoring a Qt project. The naming of variables is very domain specific and I am not the expert in this domain. So, it is difficult for me to map a widget-variable to the widget on the screen. Such tool would be a great help for me to understand the code.
Thank you very much in advance!
For simple uses you might want to take a look at QObject::dumpObjectTree()
If you need something more advanced there's kspy
kspy: examines the internal state of a
Qt/KDE app KSpy is a tiny library
which can be used to graphically
display the QObjects in use by a
Qt/KDE app. In addition to the object
tree, you can also view the
properties, signals and slots of any
QObject. Basically it provides much
the same info as
QObject::dumpObjectTree() and
QObject::dumpObjectInfo(), but in a
much more convenient form. KSpy has
minimal overhead for the application,
because the kspy library is loaded
dynamically using KLibLoader. See /usr
/share/doc/kspy/README for usage
instructions. This package is part of
the KDE Software Development Kit.
It depends on KDE's klibloader so if you are not under KDE you have to modify it but it should be rather easy. Sources are here.
There's QSpy project. It inspects all QWidgets of running application. I'm not sure how well it works, because I couldn't use it on Mac OS X. Maybe on Windows it works better. https://github.com/sashao/martlet
http://qt-apps.org/content/show.php/QSpy?content=102287
Does anyone know of any opensource tool for creating dynamic organization chart in flex by reading values from database
Have a look at KapLab (http://lab.kapit.fr)
They have free data vizualisation components. I think you might be interested by the Visualizer component.
It's not open-source though, but you can get the source code if you buy a licence.
(If you need more info, you can still contact me because I'm working closely with them)
The IBM ILog Elixer library has an organization charting component. It's not free, but it fits the bill of what you are looking for.
The most polished "free" components I've seen are the KapLab Visualizer that Pez mentioned.
However for actual open source your best be is the BirdEye Information Visualization and Visual Analytics Library. Check out the demo, the "Graphs" tab and I think tree is right up your alley. BirdEye is built with degrafa as is axiis another open source data visualization library.
Good luck!
Maybe The Flare library would suit your needs , I am starting to use it. Looks kinda funky
http://flare.prefuse.org/