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. How to prevent qt(linux) from drawing to black when first run?
Qt 6.11 is out! See what's new in the release blog

How to prevent qt(linux) from drawing to black when first run?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 336 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.
  • D Offline
    D Offline
    devj
    wrote on last edited by devj
    #1

    I used embedded linux (imx6q) with eglfs.
    Framebuffer is drawing black screen while starting Qt application.
    Simple application is black for 1sec under. Heavy application is for 4~5sec.
    This happens only once when first QT run.
    How to prevent qt from drawing to black? I can modify kernel or QT sources. any idea?

    test source is below.

    import QtQuick 2.0
    
    Rectangle {
        id: page
        width: 320; height: 480
        color: "lightgray"
    
        Text {
            id: helloText
            text: "Hello world!"
            y: 30
            anchors.horizontalCenter: page.horizontalCenter
            font.pointSize: 24; font.bold: true
        }
    }
    
    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