Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QWidget::repaint() not working on ARM on program exit

    General and Desktop
    2
    4
    565
    Loading More Posts
    • 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.
    • ericg22
      ericg22 last edited by

      Hello Qt-perts,

      I'd appreciate any suggestions on how to set a QStackedWidget view upon program exit on ARM? The code shown below works on x86 but not on ARM (using Qt 5.6 & linuxfb). No errors are generated but the repaint of the view widget does not have any effect and the last active view persists upon program exit. Any fixes and/or workarounds are appreciated.

      TIA,

      Eric Gilbertson
      Peloton Technology

      // Invoked in response to SIGINT.
      void DriverGui::AppShutdown() {
      // View persists after exiting so set this on the way out (works on x86 but not on ARM)
      ui_->view_stack->setCurrentIndex((int)TruckInfo::ViewEnum::VIEW_CONNECTING);
      ui_->view_stack->repaint();
      ui_->connecting_view->repaint();
      //ui_->view_stack->setVisible(false);
      //ui_->view_stack->repaint();
      //ui_->view_stack->setVisible(true);
      //ui_->view_stack->repaint();
      //qApp->processEvents();

      QThread::msleep(5000);
      exit(0);
      }

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Do you mean you would like to clear the content of your LinuxFB frame buffer on application exit ?

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

        ericg22 1 Reply Last reply Reply Quote 0
        • ericg22
          ericg22 @SGaist last edited by

          @SGaist Preferably I would like to put up a view that contains a logo image but failing that setting itl black would suffice. I didn't mention it in the post but I am looking for something that will also work with eglfs which I suspect rules out sending 0's to the frame buffer. What I really don't get is why using Widget::repaint() works in x86 and yet appears to be a nop in ARM

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            What should happen to your device when your application exits ?

            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 Reply Quote 0
            • First post
              Last post