PDA

View Full Version : Draw in widget?



Niunzin
8th January 2013, 12:15
Hi, firstly i'm newbie in this forum (and in Qt, hehe) and I have an ask:

I have an Widget:
8564

Whats I need make to draw with mouse in this area?

Like it:
8566


Thanks and hugs! ;)

Santosh Reddy
8th January 2013, 12:42
Nice. I don't want to discourage you, but that will take some time (for a newbie). You need to understand at-least the following concepts of Qt, to start working on such a thing. Note that there are more than couple of ways to do it, anyway one should understand these.

Just see how much you score.

1. QWidget/QObject Subclassing
2. QWidget Custom Painting
3. QObject Event Handling
4. QWidget Mouse Event Handling
5. QPainter basic usage

Don't you think MS-Paint is easier :)

Niunzin
8th January 2013, 16:33
Nice. I don't want to discourage you, but that will take some time (for a newbie). You need to understand at-least the following concepts of Qt, to start working on such a thing. Note that there are more than couple of ways to do it, anyway one should understand these.

Just see how much you score.

1. QWidget/QObject Subclassing
2. QWidget Custom Painting
3. QObject Event Handling
4. QWidget Mouse Event Handling
5. QPainter basic usage

Don't you think MS-Paint is easier :)Ok, thanks! :/