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. Stop widgets updating

Stop widgets updating

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.5k Views 2 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.
  • G Offline
    G Offline
    GrahamLa
    wrote on last edited by
    #1

    Hi
    Is there a way of stopping widgets updating when they are disabled or is this something that I have to implement myself?
    For example if I have a text edit that is disabled and my code updates it via the setText method I do not want the update to happen.

    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mpergand
      wrote on last edited by
      #2

      setReadOnly(bool) ?

      1 Reply Last reply
      0
      • G Offline
        G Offline
        GrahamLa
        wrote on last edited by
        #3

        Yes that will work with text edit, however that was only an example
        What about a general case for all widgets?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mpergand
          wrote on last edited by
          #4

          Have a look at:
          QWidget::setUpdatesEnabled(bool)

          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