Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Qt5.1] Can I force a widget to fully show without giving back control to the event loop or use processEvents()?
Forum Updated to NodeBB v4.3 + New Features

[Qt5.1] Can I force a widget to fully show without giving back control to the event loop or use processEvents()?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 729 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michel_
    wrote on last edited by
    #1

    Hello All,

    I have some old code that uses a QWidget::show(), followed by a QWidget::repaint() to show a window (with a message) before a time consuming operation starts.
    In Qt4.8 this had the intended effect of fully showing the window before continuing.
    In Qt5.1 this does not show the window fully. A QApplication::processEvents is required.

    According to the documentation, repaint() doesn't repaint when the widget is hidden.
    So probably the show() call needs the event queue to execute first before it is fully shown?

    Is there a way to fully show a (newly constructed) QWidget without giving back control to the event loop (or using processEvents) before continuing?

    Regards,
    Michel

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved