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. How to force update

How to force update

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 520 Views
  • 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.
  • Simon PlattenS Offline
    Simon PlattenS Offline
    Simon Platten
    wrote on last edited by
    #1

    I have a number of widgets, in most cases everything updates and works, but in one particular case a button doesn't update, yet if I stop in the debugger then single step the update occurs....I'm manually calling the 'update' method associated with the widget but this doesn't cause and instant update. I've tried using QCoreApplication::processEvents(), but this causes a crash.

    How can I ensure a widget is redrawn when I want it to be?

    Kind Regards,
    Simon Platten

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      its sounds a bit odd.
      What do u mean by update ?
      You change the text on button ?
      Normally it will redraw them self when needed for Qts classes.

      So i think we need a bit more context and code to give any suggestions.

      Only thing i know to prevent updates is using long lasting loops or any construct that strangulates the
      event queue.

      1 Reply Last reply
      3

      • Login

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