Results 1 to 1 of 1

Thread: No paint event occurred on MainWindow

  1. #1
    Join Date
    Mar 2018
    Posts
    33
    Thanks
    18
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: No paint event occurred on MainWindow

    What i expect is a a window with 2 black sub window but when i run the program is windowed just the main window without the 2 black window.
    What wrong i do or what i miss?
    Code is attached.


    Added after 1 4 minutes:


    Found Solution:
    My mistake is that i created MainWindow class like QMainWindow but i have to create it like QWidget, after this change all go
    Attached Files Attached Files
    Last edited by andreaQt; 1st October 2021 at 15:12.

Similar Threads

  1. No paint event occurred on MainWindow
    By andreaQt in forum Newbie
    Replies: 1
    Last Post: 1st October 2021, 15:12
  2. Replies: 3
    Last Post: 2nd August 2011, 22:15
  3. Timer event & paint event, priority
    By Teuniz in forum Qt Programming
    Replies: 0
    Last Post: 2nd February 2010, 14:33
  4. Paint event function in key press event
    By soumya in forum Qt Programming
    Replies: 6
    Last Post: 2nd February 2010, 13:40
  5. Paint MainWindow Regions
    By pedros09 in forum Qt Programming
    Replies: 1
    Last Post: 5th May 2006, 10:43

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.