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. a qml problem
QtWS25 Last Chance

a qml problem

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qml
3 Posts 2 Posters 567 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.
  • samsherS Offline
    samsherS Offline
    samsher
    wrote on last edited by
    #1

    QML Problem:
    Write an application in QML, which has a multi line text box, one button and a text field.

    As soon as the application is started, a timer should start in C++ code and update the textfield defined in QML.

    Entering text in the text area and pressing the button should write the string in the text area to a file.

    stackprogramerS 1 Reply Last reply
    0
    • samsherS samsher

      QML Problem:
      Write an application in QML, which has a multi line text box, one button and a text field.

      As soon as the application is started, a timer should start in C++ code and update the textfield defined in QML.

      Entering text in the text area and pressing the button should write the string in the text area to a file.

      stackprogramerS Offline
      stackprogramerS Offline
      stackprogramer
      wrote on last edited by stackprogramer
      #2

      @samsher for creation a timer you can use this type

      Item {
              Timer {
                  interval: 500; running: true; repeat: true
      
                onTriggered: time.text =Date().toString()
      
      
              }
      
              Text { id: time
              x:95
              y:120
      
              }
          }
      

      for creation a textinput you can use

      TextInput { text: "Hello"; font.capitalization: Font.AllLowercase }
      

      Qpushbutton

      QPushButton#evilButton { background-color: red }
      

      all thing is easy in qml Qt,some try.

      1 Reply Last reply
      0
      • samsherS Offline
        samsherS Offline
        samsher
        wrote on last edited by
        #3

        thank you sir,
        can you please also elaborate how can i sort out this problem , "** Entering text in the text area and pressing the button should write the string in the text area to a file**".

        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