Results 1 to 2 of 2

Thread: long running paint + menu hole

  1. #1
    Join Date
    Oct 2007
    Posts
    11
    Thanks
    4

    Default long running paint + menu hole

    Hi,

    I have a MainWindow with drop down menus:

    Qt Code:
    1. ...
    2. redrawAct = new QAction(tr("&Redraw"), this);
    3. connect(redrawAct, SIGNAL(triggered()), this, SLOT(redraw()));
    4.  
    5. redrawMenu = menuBar()->addMenu(tr("&Redraw"));
    6. redrawMenu->addAction(redrawAct);
    7. ...
    To copy to clipboard, switch view to plain text mode 

    When I select that "redraw" menu the painting starts to a Pixmap and so is not visible, but the disappeared redraw menu leaves a hole in the window, until the pixmap is painted.

    Is that hole avoidable?

    This is a picture:
    http://www.esnips.com/doc/d24bf3f2-1...f31a463af3/ret

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

    Default Re: long running paint + menu hole

    What does redraw() actually do? Could we see some code?

    PS. Attach images directly on the forum, please.
    J-P Nurmi

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.