Results 1 to 6 of 6

Thread: QCheckBox trouble + How to refresh a paint window if an other is open over and select

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QCheckBox trouble + How to refresh a paint window if an other is open over and se

    If you want to "freeze" a widget, simply set it to "disabled".

    Not sure what you mean with not painting while not being selected.

    When a widget has new data to display, it can simply request redrawing by calling its update() method.
    Qt will then issue a new paint event and let the widget redraw itself.

    If you need to share data between windows, simply pass a pointer or reference to that data, for example as an argument to the second window's constructor.

    Cheers,
    _

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

    andreaQt (20th May 2019)

Similar Threads

  1. Refresh my Qt window
    By maarvi in forum Newbie
    Replies: 6
    Last Post: 8th May 2011, 19:31
  2. window refresh freeze
    By jhowland in forum Qt Programming
    Replies: 1
    Last Post: 22nd February 2010, 07:58
  3. Replies: 1
    Last Post: 23rd October 2009, 22:48
  4. QPainter and refresh window
    By Atikae in forum Qt Programming
    Replies: 3
    Last Post: 18th February 2009, 12:45
  5. Want to refresh window without processEvents()
    By jnk5y in forum Qt Programming
    Replies: 6
    Last Post: 31st March 2006, 00:32

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.