Results 1 to 16 of 16

Thread: in porting Qt3 to Qt4, problem with bitBlt

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Riverside, Rhode Island, USA
    Posts
    245
    Thanks
    52
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default in porting Qt3 to Qt4, problem with bitBlt

    Hi, I am trying to rewrite a Qt3 progrom in Ot4. and I am having a problem with my resizeEvent function. In Qt3 I have
    Qt Code:
    1. void edpForm::resizeEvent( QResizeEvent* event )
    2. {
    3. QPixmap save( baseBuffer );
    4. baseBuffer = QPixmap( event->size() );
    5. baseBuffer.fill( QColor( 240, 240, 255 ) );
    6. bitBlt ( &baseBuffer, 0, 0, &save );
    7. }
    To copy to clipboard, switch view to plain text mode 
    and now I get a "bitBlt" not declared in this scope. Going to the Qt3 to Qt4 documentation I find.
    To reimplement painter backends one previously needed to reimplement the virtual function QPaintDevice::cmd(). This function is taken out and should is replaced with the function QPaintDevice::paintEngine() and the abstract class QPaintEngine. QPaintEngine provides virtual functions for all drawing operations that can be performed on a painter backend.

    bitBlt() and copyBlt() are now only compatibility functions. Use QPainter::drawPixmap() instead.
    It is possible I have missed somthing in a header file someplace to cause the error message and not the change from Qt3 to Qt4. If the latter is the case some help on the proper way to handle a resize event would be appreciated.

    This is a graphic program which uses the buffer/bitBlt a great deal.

    Thanks.
    Last edited by jacek; 17th June 2006 at 20:35. Reason: changed [ code ] to [ quote ] to allow wrapping of long lines

Similar Threads

  1. Problem in porting Main window on linux
    By jyoti kumar in forum Qt Tools
    Replies: 2
    Last Post: 2nd June 2006, 08:35
  2. problem of porting from windows to linux
    By jyoti kumar in forum Qt Programming
    Replies: 4
    Last Post: 22nd May 2006, 08:42
  3. Porting problem from Qt3 to Qt4
    By Krishnacins in forum Qt Programming
    Replies: 2
    Last Post: 19th May 2006, 14:29
  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.