Results 1 to 13 of 13

Thread: paintEvent not getting called with QMainWindow

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Posts
    63
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Windows

    Default paintEvent not getting called with QMainWindow

    I have a class that extends QMainWindow and I overrode the paintEvent method, but it never gets called. I have done something similar when extending QWidget and it does call the method. A little confused here... it seems to be declared correctly:

    protected:
    virtual void paintEvent(QPaintEvent*);
    ....
    ....
    void MyWindow:: paintEvent(QPaintEvent*)
    {
    // never gets here
    }
    Last edited by DiamonDogX; 9th April 2009 at 18:14.

Similar Threads

  1. Replies: 1
    Last Post: 7th August 2008, 13:46
  2. QMainWindow setCentralWidget from ui widget, Qt4
    By alan in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2008, 13:00
  3. QMainWindow child of a QDialog
    By brevleq in forum Qt Programming
    Replies: 2
    Last Post: 16th January 2008, 07:16
  4. Replies: 3
    Last Post: 27th November 2006, 09:56
  5. QMainWindow not receiving QResizeEvent
    By brcain in forum Qt Programming
    Replies: 1
    Last Post: 28th September 2006, 06:11

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.