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. Qt Widget content refreshing issue
QtWS25 Last Chance

Qt Widget content refreshing issue

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 162 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.
  • A Offline
    A Offline
    Athem
    wrote on last edited by
    #1

    Hi, I had a project which was running QT 4.8 and I upgraded to Qt 5.15.2. The project compiles and runs. However, when I run the project, it shows content on the screen. When I change the value, the value is updated in the backend but the screen still shows the old value. It is only when I open another page and then come back to this page where I made the change, it updates.

    FYI, the entire code is the same and the only difference is the addition of QT Widgets which I had to include since in QT 5.15.2, it is a separate module. The link shows a video where the refreshing issue is visible: https://drive.google.com/file/d/1y_awd3zslkWNCcmUfWNH_mJnoCtEN86a/view?usp=drive_link

    A 1 Reply Last reply
    0
    • A Athem

      Hi, I had a project which was running QT 4.8 and I upgraded to Qt 5.15.2. The project compiles and runs. However, when I run the project, it shows content on the screen. When I change the value, the value is updated in the backend but the screen still shows the old value. It is only when I open another page and then come back to this page where I made the change, it updates.

      FYI, the entire code is the same and the only difference is the addition of QT Widgets which I had to include since in QT 5.15.2, it is a separate module. The link shows a video where the refreshing issue is visible: https://drive.google.com/file/d/1y_awd3zslkWNCcmUfWNH_mJnoCtEN86a/view?usp=drive_link

      A Offline
      A Offline
      Athem
      wrote on last edited by
      #2

      @Athem Edit: The screen recording does not show the entire operation but in short, on tap of the box, there is a popup to enter a new number (where I enter 9) and it only updates when I change the screen.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Without any code it's almost impossible to guess what might be going wrong.

        The best thing to do is to reduce your code so that only the faulty widget is present and exhibits this behaviour.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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