Reply
Thread Tools
Posts: 18 | Thanked: 3 times | Joined on Jun 2010
#11
ok, looking into exaples helps...

But why they made it so difficult. Why one need to access ui to access items? Eh...
 
Posts: 52 | Thanked: 8 times | Joined on Apr 2010
#12
Originally Posted by Qrchack View Post
ok, looking into exaples helps...

But why they made it so difficult. Why one need to access ui to access items? Eh...
You are thinking too much in terms of Visual Studio. Microsoft have made it extremely easy for you add events to buttons. In the world of QT, it is different. Instead of EVENTS you have SIGNALS. Instead of HANDLERS you have SLOTS.

In Visual Studio, you have your window which also acts as your main class, where you do all of the coding, that's why you can access the controls directly through the code without a preceding class name. If you were to have your main form class separate from your main code class, you would have to access it exactly like you would in QT. In QT, 'ui' is in its own separate class, which is why you need to specify it when accessing the widgets (Visual Studio equivalent of 'widgets' is 'controls').
 
Posts: 18 | Thanked: 3 times | Joined on Jun 2010
#13
yeah i see that now, and i'm getting used to it... However, not only microsoft handles events, or signals (as they are named here), in that manner. Borlands also does.

Remember, i mentioned borland builder in my first post? Power of old habits, eh...

Anyway, i'm getting used to it, but still have some...objections. WHY double clicking the item doesn't move directly to "slot"?
And i cannot understand, why text fields doesn't accept numeric values, or more generally, why QString class doesn't? It makes programmer looking for other solutions, while it could be done faster. Yes, like in MS Visual Studio or Builder.

PS: thank u for word - control(s). I totally forgot how they are called in english

Last edited by Qrchack; 2010-06-24 at 09:07.
 
Posts: 180 | Thanked: 76 times | Joined on May 2010
#14
http://doc.qt.nokia.com/qt-maemo-4.6/index.html

There are Tutorials and Examples you might want to look.

You can also access the documentation from Qt Creator by selecting Help tab.
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:11.