PDA

View Full Version : opening exe files, comercial version vs opensource



Gily
20th December 2007, 08:26
Hi All
I go on with my program and done so far cool image proccesing, thanks!
few more questions:
1.I sent my exe file to my freind but he can't open it. does one need something installed to see the application? do I need to send more files?

2.does the commercial version of QT better then the opensource ? what are the differences?
3.the email support group http://lists.trolltech.com do they answer? didn't get any answer from them when I post to the list, I thought it is QT support
thanks:o

jpn
20th December 2007, 08:36
A program written with Qt needs Qt libraries. Ship QtCore4.dll, QtGui4.dll and possible some others depending on which modules you enabled. You may use an utility called Dependency Walker to resolve DLL dependencies.
Differences are that the commercial version has Visual Studio integration and ActiveQt module.
Did you actually subscribe to the list?

marcel
20th December 2007, 08:38
1.I sent my exe file to my freind but he can't open it. does one need something installed to see the application? do I need to send more files?

You also need to give him the Qt libraries and image plugins: QtCore4.dll, QtGui4.dll .. and whatever modules you used in your application. Search the forums for this issue because it has been discussed a lot of times.



2.does the commercial version of QT better then the opensource ? what are the differences?

It is basically the same. The biggest difference is that the commercial version provides support for commercial compilers and IDEs, such as Ms and Intel.



3.the email support group http://lists.trolltech.com (http://lists.trolltech.com/) do they answer? didn't get any answer from them when I post to the list, I thought it is QT support
thanks:o

You can always ask here. We're more active.

Gily
20th December 2007, 10:08
thanks . I am subscribed .
Another question:

I need to create a dialog that will be activated from the main menu
I want the function to open a dialog that the user can choose color.
I read I need to use ColorListEditor . still not sure if I need to create a widget? if I understand correctly no need to delete it later?
what widget to I need to use? is it a window? do I need to implamant it?
it is common to create new class for this window? or do you usualy create a base class that handle all wndows in the application?
or do I just inhirate the needed widjet to the function that handle the image?
hope I am clear
thanks

Gily
20th December 2007, 10:10
It there a reson why sometimes the app include in different ways??
why the different ways are needed and when should I use them?


#include <QComboBox>

class QColor;
class QWidget;

class ColorListEditor : public QComboBox
{
Q_OBJECT
Q_PROPERTY(QColor color READ color WRITE setColor USER true)

jpn
20th December 2007, 10:30
Use meaningful thread titles. "few general question" tells nothing about actual thread context.
Do not ask multiple unrelated questions in same thread.
Search Qt docs & examples and the forums first, then ask.




Another question:
I want to do sub menu. I mean I have menu in the top of the application with the right slot who calls the function
like in save ->save function

Signals and Slots (http://doc.trolltech.com/latest/signalsandslots.html)



now I want the function to open a dialog that the user can choose color.
I read I need to use ColorListEditor . still not sure if I need to create a widget? if I understand correctly no need to delete it later?
also not sure what s the result of that class. do I need to use the visual editor for that?
hope I am clear

I'm afraid you're not very clear. Of course you need to create a widget if you want to show an additional window. A modal dialog may be allocated on the stack, any other widget may not.


It there a reson why sometimes the app include in different ways??
why the different ways are needed and when should I use them?

Forward declaration (http://en.wikipedia.org/wiki/Forward_declaration)

Gily
20th December 2007, 10:47
thanks for your answer
what I wanted to know , if there is common use/agreement for QT users when to use Forward_declaration an when to include?
is there a way /convention?

jpn
20th December 2007, 10:56
what I wanted to know , if there is common use/agreement for QT users when to use Forward_declaration an when to include?
is there a way /convention?
It is a good practice to use forward declarations whenever possible. It will make compilation faster. A forward declaration is enough when the corresponding type is only used as a reference or as a pointer, in other words, when the compiler doesn't need to know actual size of the type. I'm sure this is all explained in more detailed in the given wiki article.