Home » Community » Coffee corner » Basic questions about u++
Re: Basic questions about u++ [message #23271 is a reply to message #23270] |
Wed, 07 October 2009 07:52 |
andrei_natanael
Messages: 262 Registered: January 2009
|
Experienced Member |
|
|
irtech wrote on Wed, 07 October 2009 07:19 | I actually have read those overview, comparison,... sections.
For example in comparison section there is a sample program that shows U++ far less coding than Qt, but I like to know is this a general rule or just a specific example which is not true in other cases?
|
It is a general rule. To create a qt application you have to follow the same "pattern" always. You have to create an QApplication class in main function, another class derived from QWidget (or QWindow), etc. In U++ you are not forced to do so and you don't have a main Application class.
Quote: |
I presume volume of coding depends on richness of libraries. Does this suggest that U++ have richer libraries that Qt?
Richness of libs adversely affect dev time. I like to know is it safe to say that U++ dev time is shorter than Qt in most cases?
I especially mean big GUI applications.
|
I think U++ doesn't have riches libraries than Qt but are more efficient and overloading of some operators make you typing less. In some parts U++ API is better structured than Qt API and viceversa.
Quote: |
Certainly I am not looking for a perfect dev language that has best performance, best libraries, cleanest code,...
I'm ready to compromise but I like to know what I have to give and in return what I will get.
mr-ped said U++ is more C++ like. I've read that U++ people had good reasons not to use stdlib but I like to know having these reasons in mind how U++ is more C++ like than Qt?
|
Qt has a "custom" C++. They are using moc(Meta Object Compiler) to handle their extensions to C++. If the following code looks like normal C++ code to you, then yes, Qt is more C++ like than U++
class MyClass : public QObject
{
Q_OBJECT
public:
MyClass(QObject *parent = 0);
~MyClass();
signals:
void mySignal();
public slots:
void mySlot();
};
My C++ doesn't have signals and public slots keywords. So you have to send your source to moc compiler before sending to C++ compiler, else your Qt code is not valid.
Even if U++ doesn't use stdlib(STL)(for performance reasons) it's more C++ like than Qt.
|
|
|
|
|
Basic questions about u++
By: irtech on Tue, 06 October 2009 14:14
|
|
|
Re: Basic questions about u++
By: mr_ped on Tue, 06 October 2009 14:41
|
|
|
Re: Basic questions about u++
By: mr_ped on Tue, 06 October 2009 15:03
|
|
|
Re: Basic questions about u++
By: irtech on Tue, 06 October 2009 15:30
|
|
|
Re: Basic questions about u++
By: zsolt on Tue, 06 October 2009 15:51
|
|
|
Re: Basic questions about u++
By: irtech on Wed, 07 October 2009 06:19
|
|
|
Re: Basic questions about u++
|
|
|
Re: Basic questions about u++
By: mirek on Wed, 07 October 2009 08:29
|
|
|
Re: Basic questions about u++
By: mirek on Wed, 07 October 2009 08:46
|
|
|
Re: Basic questions about u++
By: mr_ped on Wed, 07 October 2009 09:04
|
|
|
Re: Basic questions about u++
By: mirek on Wed, 07 October 2009 09:46
|
|
|
Re: Basic questions about u++
By: irtech on Wed, 07 October 2009 10:04
|
|
|
Re: Basic questions about u++
|
|
|
Re: Basic questions about u++
By: mr_ped on Wed, 07 October 2009 10:45
|
|
|
Re: Basic questions about u++
By: unodgs on Wed, 07 October 2009 11:54
|
|
|
Re: Basic questions about u++
By: irtech on Wed, 07 October 2009 12:11
|
|
|
Re: Basic questions about u++
By: mirek on Wed, 07 October 2009 12:23
|
|
|
Re: Basic questions about u++
By: mr_ped on Wed, 07 October 2009 13:33
|
|
|
Re: Basic questions about u++
By: irtech on Wed, 07 October 2009 16:18
|
|
|
Re: Basic questions about u++
By: chickenk on Wed, 07 October 2009 17:46
|
|
|
Re: Basic questions about u++
By: mrjt on Wed, 07 October 2009 18:14
|
|
|
Re: Basic questions about u++
By: irtech on Wed, 07 October 2009 18:47
|
|
|
Re: Basic questions about u++
By: mrjt on Wed, 07 October 2009 19:07
|
|
|
Re: Basic questions about u++
By: mirek on Wed, 07 October 2009 19:14
|
|
|
Re: Basic questions about u++
By: mr_ped on Wed, 07 October 2009 21:28
|
Goto Forum:
Current Time: Mon May 13 07:39:32 CEST 2024
Total time taken to generate the page: 0.01478 seconds
|