Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] Qt Green Background
Forum Updated to NodeBB v4.3 + New Features

[Solved] Qt Green Background

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 2.4k Views 1 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.
  • S Offline
    S Offline
    sos1
    wrote on last edited by
    #1

    I'm using Beaglebone White hardware with Angstrom 3.2.42 and Qt 4.6.3 cross compiler. I have custom hardware with 1024 x 768 lcd screen.

    The problem I have is that when I switch between different screens in my application, there is a brief flash of a green screen from the background. Does anyone know how to get rid of it?

    Even if it could be set to black, it would be better than it is now.

    Regards,
    James


    To switch between screens, I do the following:
    ScreenA->hide();
    ScreenB->show();

    1 Reply Last reply
    0
    • B Offline
      B Offline
      blaroche
      wrote on last edited by
      #2

      you can try something like the following:

      @
      #ifdef Q_WS_QWS
      app.setOverrideCursor( QCursor( Qt::BlankCursor ) );
      QWSServer::setCursorVisible( false );
      QWSServer::setBackground(QBrush(Qt::black));
      #endif
      @

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

        Hi,

        IIRC, you can use

        @QWSServer::setBackground(QBrush(Qt::black));@

        Otherwise, you can simply show ScreenB first, not even needing to hide ScreenA

        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