Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved setting MessageDialog text property using sprintf or something similar

    General and Desktop
    2
    2
    165
    Loading More Posts
    • 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.
    • P
      Prasad_Socionext last edited by

      MessageDialog {
      id: messageDialog
      title: "Tcp Server Connection Status"
      text: "Connection to" server_name_id.text "Failed"
      icon: "Critical"
      onAccepted: {
      console.log("What is the issue. Please check")
      //server_name_id.enabled = true;
      //server_port_id.enabled = true;
      tcpip_connect_id.checked = false
      }
      visible :false
      }

      how did i set the text property using concatenation of " " and some other UI property text sprintf does not work

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @Prasad_Socionext last edited by

        @Prasad_Socionext http://doc.qt.io/qt-5/qml-qtqml-string.html

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 2
        • First post
          Last post