Qt Forum

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

    Call for Presentations - Qt World Summit

    Solved Signal and Slot - passing data between forms

    General and Desktop
    2
    3
    716
    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.
    • CadNeto
      CadNeto last edited by

      I'm new in Qt5.
      I have a Dialog (1) with a tableView and when I choose a row from this TableView and I click the PushButton "OK", I want open other Dialog(2) with a lineEdit that contain a specific column (column 0) from the tableView from the Dialog (1). It is Possible ?, Can sameone help me ?

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        @CadNeto said:
        Hi and welcome
        Dialog(2) would have to know the model Dialog (1) tableView
        is using. You could do this via constructor when showing Dialog(2).

        Since lineEdit is single value, you could use
        http://doc.qt.io/qt-5.5/qdatawidgetmapper.html#details
        to hook it up to the model.

        1 Reply Last reply Reply Quote 0
        • CadNeto
          CadNeto last edited by

          Ok....I'll try....thanks.

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