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. QWidget::repaint() not working on ARM on program exit

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 717 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.
  • ericg22E Offline
    ericg22E Offline
    ericg22
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      ericg22E 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

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

        ericg22E Offline
        ericg22E Offline
        ericg22
        wrote on last edited by
        #3

        @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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0

          • Login

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