[Qt-creator] Automatic handler creation + crossplatform project...
Ernst Huber
swmail01 at systest.ch
Mon Feb 23 13:36:50 CET 2009
Alex Williams schrieb:
> Thank you for explanations. This IDE is NOT suitable for my company.
> First question: "Where is the button handler? Manual editing? You're
> joking?!" - says my friends...
>
Well, I don't know better as written in my last reply. It's more about
Qt Designer than Qt Creator, I guess.
You can read more about Designer, signal/slot mechanism and actions here:
Designer manual:
http://doc.trolltech.com/4.4/designer-manual.html
Actions - used in Main Windows:
http://doc.trolltech.com/4.4/designer-creating-mainwindows.html
Signal/Slots:
http://doc.trolltech.com/4.4/designer-connection-mode.html
And finally how to tighten all together is described here: "Slots" are
what you describe as handlers:
http://doc.trolltech.com/4.4/designer-using-a-component.html
> P.S.
> It's normal to have "do not edit this manually" sections in code. You
> prefer manual editing, but others - NOT... Please, do not destroy
> future of this nice IDE...
>
We could also start a nice discussion about where to place the currly
braces in code...
IMHO it's a matter of taste.
> P.P.S.
> I want to improve this IDE - can I participate in development? Or you
> are officially against autohandlers?
>
>
There are auto-connects - seems to be the Qt equivalent for
auto-handlers. See the section "Widgets and Dialogs with Auto-Connect" here:
http://doc.trolltech.com/4.4/designer-using-a-component.html
But nevertheless you will have to define and implement the handlers
manually in your code:
For example in the header file:
private slots:
void on_okButton_clicked();
And in the implementation file:
void TextFinder::on_okButton_clicked()
{
...
}
- - - - - - - - - - - - -
I'm not a Qt/Designer expert, just a programmer using (and struggling with) these tools for a couple of years now, nor am I part
of the Qt Creator team - so let's see whether you get an invitation from them to participate in their work.
Best regards
Ernst
>> As far as i know
>> the handlers for actions must be implemented manually, there's no
>> "visual" in the IDE - but this is how Desginer (which is integrated into
>> Creator) works. In my opinion it's little extra work to do it like this,
>> even more, I prefer writing my own code as compared to other IDE's
>> (Visual ...) where the code generators often prepend the code with
>> "don't change this or that..." and one has little clue why.
>>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
>
More information about the Qt-creator-old
mailing list