PDA

View Full Version : How to get a Multi select combobox



calmspeaker
20th August 2008, 07:31
:)We can select one item in the combobox, how can I make a control like the combobox,but the user can select several item in the list, the list item could like a checkbox.Please give me a clue, thanks!

jpn
20th August 2008, 07:32
See QxtCheckComboBox (http://doc.libqxt.org/latest/classQxtCheckComboBox.html).

calmspeaker
20th August 2008, 08:02
Thank you for your quick clue.

calmspeaker
20th August 2008, 09:20
See QxtCheckComboBox (http://doc.libqxt.org/latest/classQxtCheckComboBox.html).


I have download the libqxt0.4.0 and I followed the instruction on GettingStart page on http://www.libqxt.org/.
I type "configure.bat", the result is " Makefiles generated. Run nmake now".

I type "nmake", there are lots of errors. For example:
".\qxtmetaobject.h(73) : error C2062: type 'class QGenericArgument (__cdecl *)(void)' unexpected"


And I use MS Windows Xp and visual c++ 6. I am newbie to Qt, so I think the information I supply is not enough. Please give me some more insturction on how to use QXT. Thank you.

jpn
20th August 2008, 10:32
Probably nobody ever tried to compile it with such an ancient compiler as VC++ 6.0. I'd recommend switching to a compiler from this millennium... Btw, Trolltech is also planning to drop support for VC++ 6.0 sooner or later.

bunjee
20th August 2008, 11:03
Hey there dude,

I guess you might want to use GCC + Eclipse + Qt integration:

Eclipse C++ : http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/ganymede/R/eclipse-cpp-ganymede-win32.zip
Qt integration : http://trolltech.com/developer/downloads/qt/eclipse-integration-download

You'll have a deeper integration and a code ready to compile if you're using Windows or Linux.

wysota
20th August 2008, 12:47
Btw, Trolltech is also planning to drop support for VC++ 6.0 sooner or later.

Qt 4.4 is the last branch to support VC6.

calmspeaker
25th August 2008, 03:00
Probably nobody ever tried to compile it with such an ancient compiler as VC++ 6.0. I'd recommend switching to a compiler from this millennium... Btw, Trolltech is also planning to drop support for VC++ 6.0 sooner or later.

Only the manager could decide which compiler that our group use. Unluckily, I am not the one. So I read the src to get some hints to write my own version of CheckComboBox. Are you realise checkcombobox in the files which named Qxtcheckcombobox.cpp,Qxtcheckcombobox.h,Qxtcheckco mbobox_p.h? I mean, I see a signals declaration: void checkItemsChanged(const QStringList& items) in class QxtCheckComboBox's declaration, but I cannot find the "slot" which is connected with this signal.

wysota
25th August 2008, 06:04
Only the manager could decide which compiler that our group use. Unluckily, I am not the one.
But someone can tell the manager he has to think about turning away from an ancient compiler that doesn't even know C++ standards and breaks every standard C++ code.


So I read the src to get some hints to write my own version of CheckComboBox.
Just don't violate the licence or else mighty revenge from heaven will come upon you :)

calmspeaker
26th August 2008, 05:49
Just don't violate the licence or else mighty revenge from heaven will come upon you :)
Thank you for reminding me.
I really need to read the licence carefully to avoid the lightning or sth.;)