Results 1 to 6 of 6

Thread: painting problem.

  1. #1
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default painting problem.

    Hi

    I have a QRubberBand. Actually its says that QRubberBand will re-paint the "Parent object" while moving the Rubberband on its parent .( IF i am wron please correct me ..)

    BUT.....
    How can i restrict a QRubberband from re-painting its parent.
    At the same time i want have to pass the "Parent object " in QRubberBand.
    Is there any setFunction() to make it possible.

    Thank you

  2. #2
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Re: painting problem in QRubberband

    hello...


    Is there any body to help me...
    Atleast give me a hint.

    If i subclassed myRubberBand( QRubberBand ), can i achieve solution..???

    thanks in advance.
    Last edited by joseph; 25th July 2007 at 07:02.

  3. #3
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Re: painting problem.

    can i expect any help from this forum..??

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: painting problem.

    You must help us to help you. Could you state clearly what are you trying to do?
    J-P Nurmi

  5. #5
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Re: painting problem.

    I am working with a Drawing application on a canvas ( Q3Frame ).
    On canvas i will draw images. The folowing senario comes while CUT and PASTE the images in canvas.

    While CUT : ( using CTRL + X )
    1) i used to hide the images in canvas using BACKGROUND colour of canvs.
    2) Then enduser wil get a feeling that the images have been cut from the canvas.


    While PASTE : ( Using CTRl + V )
    1) Now a QRubberband band wil comes along with a special cursor. 2) User can move this QRubberBand over the canvas , for locate the PASTING.
    3) while clicking Left-mouse-button ...
    a) the images will be pasted in canvas
    b) and QRubberBand will be disappered

    Exact Problem:
    1) After CTRL + X , the images will be hidden in QFrame ( Drawing Canvas ).
    2) Then user press CTRL +V for pasting , then rubberBand will comes .
    3) While moving the rubberband over the hidden images in canves , they gets painted.
    i want to avoid this re-painting of hidden images in canvas.


    please help me.
    thanks

  6. #6
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: painting problem.

    But this is your implementation's fault.
    Post some code, maybe we can help you.

    How do you exactly hide those images? I suggest removing them entirely from the canvas.

    Anyway, may I suggest to switch to QGraphicsView? You are using deprecated functionality.

    Regards

Similar Threads

  1. Graphics view display problem.
    By kiranraj in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2007, 07:08
  2. Painting problem
    By ScoOteR in forum Qt Programming
    Replies: 5
    Last Post: 11th March 2007, 11:03
  3. Painting Problem
    By shyam prasad in forum Qt Programming
    Replies: 3
    Last Post: 5th February 2007, 14:07
  4. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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
  •  
Qt is a trademark of The Qt Company.