PDA

View Full Version : Qt widget libraries/catalogs/etc



erik
14th August 2008, 07:35
Hello all!

I have spent a lot of time surfing the net and looking for ready Qt custom widget libraries/catalogs. However, I haven`t found anything except these to catalogs:
1. http://www.qtcentre.org/links/14/28
2. http://www.wysota.eu.org/wwwidgets/
Those 2 libraries do not contain components I`ve been looking for: custom docking widgets like those ones in Microsoft Visual Studio 2005.
It will be great if someone will explain me are there any libraries of Qt widgets, and, if they are, where I can find them.
For now, my opinion is that any custom widgets you have to create manually (as opposed to .NET where there are a lot of 3rd party libraries such as devexpress.com (http://www.devexpress.com/)) :o

wysota
14th August 2008, 10:35
What do you mean by "custom docking widgets"? You mean the IDEAI interface? AFAIK there is no such component for Qt4, but it should be possible to implement it if one paid enough :)

erik
14th August 2008, 11:10
wysota,

Could you please describe what does IDEAI interface mean? In my initial post I wrote that I would like to implement some docking behavior like in Microsoft Visual Studio 2005: when you begin dock any window it shows where I can leave that window using blue areas and docking anchors.

wysota
14th August 2008, 11:30
That's not IDEAI then. Well... it's part of it. I think you should be able to implement it (or something similar) by cleverly handling intercepted events from dock widgets. It needs some work so I doubt if anyone will implement it in his free time. Honestly I've never seen such a mechanism outside Visual Studio.

erik
14th August 2008, 11:49
wysota,

Ok, thank you very much. At this moment I have 2 more questions:
1. Could you please describe generally which handlers I have to implement to accomplish such task (I do not have strong knowledge of Qt (for now ;)), so a little roadmap will be very appreciated).
2. Are any libraries of components/widgets for Qt in the net? Or the most common approach is to create them by yourself when something is needed?

wysota
14th August 2008, 13:00
1. Could you please describe generally which handlers I have to implement to accomplish such task (I do not have strong knowledge of Qt (for now ;)), so a little roadmap will be very appreciated).
You'll have to install an event filter for each dock widget you want to handle so that all their events are forwarded to the main window (which may already be the case, so maybe installing the filter for the second time is not required). Then you have to check when the dock widget is being undocked and when it is, tell your main window subclass to paint the possible locations (so you'll have to reimplement paintEvent). You also need to find out what locations are possible, but I guess this part is up to you.


2. Are any libraries of components/widgets for Qt in the net? Or the most common approach is to create them by yourself when something is needed?

Check out qtapps.org. There are different approaches to the case, for instance you can find many nice components by browsing this site (mostly in different threads on the forum but also in the wiki).

erik
14th August 2008, 13:14
wysota,

Thank you very much for your answers :).

netuno
14th August 2008, 15:15
Hi,

In case you're interested in an IDEA dock widget after all there's a lib that has this functionally (among other things like SpellChecker, extra widgets, etc). It's called DLib and it's source is avaliable here:

http://gitorious.org/projects/dlib

The IDEA component is called ideality.

One thing, the link above is for the source of the main tree. This tree:

http://gitorious.org/projects/dlib/repos/netuno-sandbox

Has several improvements on the spell checker (just in case you're interested).

Hope this helps

erik
15th August 2008, 05:46
netuno,

Thank you very much for links, I`m going to take a look there.