Results 1 to 3 of 3

Thread: Draw in widget?

  1. #1
    Join Date
    Dec 2012
    Posts
    13
    Thanks
    11
    Qt products
    Qt5
    Platforms
    Windows

    Question Draw in widget?

    Hi, firstly i'm newbie in this forum (and in Qt, hehe) and I have an ask:

    I have an Widget:
    becefaaa71a34e879c23491.png

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

    Like it:
    1i3tq.png


    Thanks and hugs!

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Draw in widget?

    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
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. The following user says thank you to Santosh Reddy for this useful post:

    Niunzin (8th January 2013)

  4. #3
    Join Date
    Dec 2012
    Posts
    13
    Thanks
    11
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Draw in widget?

    Quote Originally Posted by Santosh Reddy View Post
    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! :/

Similar Threads

  1. Widget dragging, widget doesn't fully draw
    By Meate in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2012, 22:21
  2. Draw Custom widget
    By deepal_de in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2011, 07:27
  3. Draw a line between widget and mouse?
    By AyaKoshigaya in forum Qt Programming
    Replies: 6
    Last Post: 26th April 2010, 06:32
  4. Draw transparent SVG in Background of Widget
    By soul_rebel in forum Qt Programming
    Replies: 0
    Last Post: 28th October 2008, 20:44
  5. Draw contents of widget in another widget
    By gustavosbarreto in forum Qt Programming
    Replies: 1
    Last Post: 6th August 2007, 14:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.