[Qt-creator] Drawing on QWidget
Patrick Scheller
patlecat at gmx.net
Wed Jul 8 09:18:11 CEST 2009
I fully agree with you Alex, even though there is a lot of good
documentation around for Qt, there are still some blind spots where
you risk to being stuck for a long time because certain relations
aren't obvious enough to the average programmer. I for example bought
2 Qt books and still couldn't find more than some basic info about
how to work with generated code from the designer. André sees things
from the perspective of the maker (developer) of Qt and Qt-Creator
which explains his usual RTFM or RTFC attitude - for him there is no
other way to approach a program or an API. We cannot blame him, I
work with many guys that have the same attitude. :)
But I'm sure he is otherwise a really brilliant and sharp mind and
coder!
So pls André take no offence in my words. :D
And thanks Alex for persisting, this topic was most interesting for
me too.
On 06.07.2009, at 09:46, Alex Williams wrote:
>> The induction from "I could not find it" to "it is (generally)
>> hard to find"
>> is lacking a proof. [I doubt there is one as I have a counter
>> example:
>> I found that page within two minutes without ever seing it before]
>
>> And, as a really subjective point: Given your wxWidgets code below
>> I am
>> fairly sure you knew that you had to create a widget for "such a
>> primitive action as drawing something". wxPanel is a widget, isn't
>> it?
>
> Please, stop this... don't worry & relax... :) wxPanel - i'm just
> dropping this widget on form and no more actions required. I didn't
> knew that NOW for painting we must create our own widget. That's all.
> Thanks to Coda Highland, I know that this is for performance reason.
>
> Anyway, there is no clear path from QPainter to QWidget, and no
> information about painting in context of Qt Creator. Just search in
> samples and internet - if you find this info you will be a hero and I
> you deserve medal ^_^
> _______________________________________________
> 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