Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Button invisible on some systems

QML Button invisible on some systems

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 272 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.
  • O Offline
    O Offline
    Oliver Schwarz
    wrote on last edited by
    #1

    I have a weird behavior of my QML Button.

    I'm developing on a Redhat 7/VM machine via SSH/X11. On my system the dialog displays the buttons correctly. On the customer system, also RH7/VM but accessing via Spice protocol the button is not visible. Clicking on it performs the action that is defined.

    My suspicion is that it has something todo with the access of the machines (X11 vs. SPICE the default RH Remote Viewer).

    Rectangle {
       GridLayout {
          id: grid
          columns: 2
          anchors.top: toolbar.bottom
          anchors.left: parent.left
          anchors.right: parent.right
          anchors.bottom: parent.bottom
          Rectangle {
             id: leftTools
             Layout.alignment: Qt.AlignLeft | Qt.AlignTop
             width: 100
             color: "black"
             ...
             Button {
                id: layoutOpen
                anchors.top: layoutRectangle1.bottom
                text: "Open Layouts"
                
                MouseArea {
                    anchors.fill: parent
                    onClicked: {
                        openLayoutDialog.open()
                    }
                }
             ....
            }
       }
    }
    

    I tried several properties of the button (visible, opacity, color, ...) but nothing seemed to work. Does anyone has experienced the same?

    1 Reply Last reply
    0
    • O Offline
      O Offline
      Oliver Schwarz
      wrote on last edited by Oliver Schwarz
      #2

      Ok. Finally I managed to workaround the behavior.

      Thanks to a user that gave me the tip via PM. I replaced the Button by a Rectangle with MouseArea.

      1 Reply Last reply
      3

      • Login

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