×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    1

    how to use Qpainter for low level drawing using a button and not paint event

    hello, iam new to drawing in Qt.I need to draw a graph using low level drawing with Qpainter.I want the graph to appear on another control other than the form widget.i want it to appear on the control called widget.

    I want the graph to appear when i press on a button and not in the paint event.

    Does anyone have an idea how to do that or does anyone have sample code for similar action.
    many thanks to you all

  2. #2
    Registered User
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998

    Re: how to use Qpainter for low level drawing using a button and not paint event

    AFAIK there are no examples matching your requirement. Probably you can try implementing it and when you hit a blocker post it in the forum.

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: how to use Qpainter for low level drawing using a button and not paint event

    I suspect you do not understand the Qt painting paradigm.

  4. #4
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: how to use Qpainter for low level drawing using a button and not paint event

    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. Replies: 6
    Last Post: 2011-02-17, 06:21
  2. make QPainter paint as foreground paint
    By srinivas.symbian in forum Qt
    Replies: 0
    Last Post: 2010-12-10, 04:31
  3. low-level event question
    By xarris_ in forum Mobile Java General
    Replies: 3
    Last Post: 2007-05-21, 11:56
  4. How to display a long text and textbox in low level
    By Basu in forum Mobile Java General
    Replies: 2
    Last Post: 2007-03-31, 08:02
  5. Low Level implemenation using Commands(High Level API) is this possible
    By shanemurphy30 in forum Mobile Java General
    Replies: 4
    Last Post: 2007-01-23, 16:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •