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. Signal and Slot - passing data between forms
Forum Updated to NodeBB v4.3 + New Features

Signal and Slot - passing data between forms

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 814 Views 1 Watching
  • 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.
  • CadNetoC Offline
    CadNetoC Offline
    CadNeto
    wrote on last edited by
    #1

    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
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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
      0
      • CadNetoC Offline
        CadNetoC Offline
        CadNeto
        wrote on last edited by
        #3

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

        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