Results 1 to 2 of 2

Thread: No paint event occurred on MainWindow

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

    Default 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.
    Attached Files Attached Files

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

    Default Re: No paint event occurred on MainWindow

    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

Similar Threads

  1. Replies: 3
    Last Post: 2nd August 2011, 21:15
  2. Delegate paint event bug?
    By jerry7 in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2010, 02:14
  3. Timer event & paint event, priority
    By Teuniz in forum Qt Programming
    Replies: 0
    Last Post: 2nd February 2010, 13:33
  4. Paint event function in key press event
    By soumya in forum Qt Programming
    Replies: 6
    Last Post: 2nd February 2010, 12:40
  5. Paint MainWindow Regions
    By pedros09 in forum Qt Programming
    Replies: 1
    Last Post: 5th May 2006, 09: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.