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. Text not visible in some QML components in the Android emulator
Forum Updated to NodeBB v4.3 + New Features

Text not visible in some QML components in the Android emulator

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 4 Posters 509 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.
  • J Offline
    J Offline
    jarle
    wrote on 19 Jun 2024, 17:04 last edited by
    #1

    When I run a very simple app in the Android x86_64 emulator, texts in TextField and ComboBox are not visible on screen.

    screenshots

    The screenshots shows the emulator left and a screenshot from my Nokia XR20 right, running the same app, deployed from QT Creator.

    I have tested with Qt 6.7 and 6.8.0-beta1, various emulated phones (x86_64) and two different machines, one with an AMD CPU and display card, and one with an Intel CPU and integrated graphics. Both running kubuntu.

    The test-app is like this:

    import QtQuick
    import QtQuick.Controls
    import QtQuick.Layouts
    
    
    Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
    
        ColumnLayout {
            anchors.fill: parent
            anchors.margins: 20
            spacing: 10
    
            Label {
                text: "Label text"
            }
    
            TextField {
                Layout.preferredWidth: 100
                placeholderText: "Enter text"
                text: "Some text"
            }
    
            ComboBox {
                Layout.preferredWidth: 100
                model: ["Option 1", "Option 2", "Option 3"]
            }
    
            Item {
                Layout.fillHeight: true
            }
        }
    }
    
    1 Reply Last reply
    0
    • F Offline
      F Offline
      fpaolini
      wrote on 17 Jul 2024, 14:15 last edited by
      #2

      I have the same issue. By the way, I have noticed that the placeholderText property is shown correctly

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on 18 Jul 2024, 08:56 last edited by
        #3

        Found that I had this problem with TextField too. TextInput shows, however

        1 Reply Last reply
        0
        • U Offline
          U Offline
          UnstableWoofer
          wrote on 28 Aug 2024, 17:54 last edited by
          #4

          I've been noticing the same and has been driving me crazy. Currently found TextField and ComboBox affected.

          Doesn't matter how simple the code or even if the colour is set for the text,it will never show unless highlighted.

          Been using 6.4 and 6.5

          1 Reply Last reply
          0
          • U Offline
            U Offline
            UnstableWoofer
            wrote on 28 Aug 2024, 18:13 last edited by
            #5
            This post is deleted!
            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