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. Button Text not readable
QtWS25 Last Chance

Button Text not readable

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt quickqmlqtquickdialogbuttons
6 Posts 2 Posters 1.9k 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.
  • Q Offline
    Q Offline
    Qjay
    wrote on 20 Oct 2017, 15:03 last edited by
    #1

    As the title says the button text is not visible at all . When i click on it then only i am able to see it for a second .
    Screenshot :
    alt text

    Code :

    import QtQuick 2.6
    import QtQuick.Controls 2.0
    import QtQuick.Dialogs 1.2
    
    Item {
       id: root
       width: 580
       height: 400
       SystemPalette { id: palette }
       clip: true
    
        MessageDialog {
            id: quitDialog
            text: "Do you wish to quit?"
            visible: false
            icon : StandardIcon.Question
            modality: Qt.ApplicationModal
            standardButtons: StandardButton.Yes | StandardButton.No
            onAccepted: Qt.quit()
            Component.onCompleted: visible = true
            onYes : Qt.quit();
            onNo: console.log("Not quitting")
        }
    }
    
    

    Any ideas why this is happening ?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Pradeep Kumar
      wrote on 20 Oct 2017, 15:52 last edited by
      #2

      Hi ,

      Just tried ur code, the text is visible for me when i ran it.
      i tried with Qt 5.8 , Qt 5.9 Windows.

      0_1508514678483_popup_Qmldialog.PNG

      Can u list ur configuration?.

      Thanks,

      Pradeep Kumar
      Qt,QML Developer

      Q 1 Reply Last reply 20 Oct 2017, 16:11
      2
      • P Pradeep Kumar
        20 Oct 2017, 15:52

        Hi ,

        Just tried ur code, the text is visible for me when i ran it.
        i tried with Qt 5.8 , Qt 5.9 Windows.

        0_1508514678483_popup_Qmldialog.PNG

        Can u list ur configuration?.

        Thanks,

        Q Offline
        Q Offline
        Qjay
        wrote on 20 Oct 2017, 16:11 last edited by Qjay
        #3

        @Pradeep-Kumar Hey , the thing is my system has dark theme ( i am using KDE ) but when i switch the theme to light theme , it shows text .
        alt text

        I am not really sure why this is happening

        My system if it helps :
        Linux mint 18 KDE .
        Qt 5.9 .

        1 Reply Last reply
        0
        • P Offline
          P Offline
          Pradeep Kumar
          wrote on 20 Oct 2017, 16:20 last edited by Pradeep Kumar
          #4

          Hmmm k , didnt try with linux and the other themed settings,
          make be native look and feel i suppose.
          Will try with ur configuration some time.

          Thanks,

          Pradeep Kumar
          Qt,QML Developer

          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            Qjay
            wrote on 20 Oct 2017, 16:30 last edited by
            #5

            still i don't understand why this behaviour :/ . does it automatically takes system theme and set colors accordingly

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Pradeep Kumar
              wrote on 20 Oct 2017, 16:31 last edited by
              #6

              need to check Qt classes for system settings and native look and feel,
              and of adopting those changes for App.

              Thanks,

              Pradeep Kumar
              Qt,QML Developer

              1 Reply Last reply
              0

              6/6

              20 Oct 2017, 16:31

              • Login

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