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. setting MessageDialog text property using sprintf or something similar
Forum Updated to NodeBB v4.3 + New Features

setting MessageDialog text property using sprintf or something similar

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 225 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.
  • P Offline
    P Offline
    Prasad_Socionext
    wrote on last edited by
    #1

    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

    jsulmJ 1 Reply Last reply
    0
    • P Prasad_Socionext

      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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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
      2

      • Login

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