Results 1 to 4 of 4

Thread: How to update the components or repaint of a QMainWindow?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to update the components or repaint of a QMainWindow?

    Yes, in the header for Window:
    Qt Code:
    1. class Window: public QMainWindow
    2. {
    3. Q_OBJECT
    4. public:
    5. Window(...);
    6.  
    7. ...
    8. private slots: //
    9. void modify();
    10. ...
    11. };
    To copy to clipboard, switch view to plain text mode 
    and you must rerun qmake if you added the Q_OBJECT macro.

  2. The following user says thank you to ChrisW67 for this useful post:

    vitaR (19th March 2014)

Similar Threads

  1. repaint/update stops updating GUI
    By gokceng in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th November 2011, 14:35
  2. Replies: 4
    Last Post: 17th October 2010, 22:30
  3. Replies: 4
    Last Post: 10th June 2010, 21:25
  4. Replies: 5
    Last Post: 18th April 2007, 10:29
  5. Use of repaint/update
    By Placido Currò in forum Qt Programming
    Replies: 3
    Last Post: 3rd April 2007, 19:24

Tags for this Thread

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.