Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Independent Developers
  4. Connect two windows
Qt 6.11 is out! See what's new in the release blog

Connect two windows

Scheduled Pinned Locked Moved Independent Developers
4 Posts 2 Posters 5.3k 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.
  • J Offline
    J Offline
    joojo
    wrote on last edited by
    #1

    i want to create two windows and connect how can i do?

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Hi joojo!
      Welcome to devnet.

      It depends. You need two window in one app or two separate apps?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        joojo
        wrote on last edited by
        #3

        i want to click button in main window and pop up new window.then i do calculations in 2 nd window and submit.then change main window values.

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qxoz
          wrote on last edited by
          #4

          Well then then just create the method in second dialog end call it after dialog closed:
          @void on_showdialog_action()
          {
          uSecondDialog *usrDlg = new uSecondDialog(this);
          if(usrDlg->exec() == QDialog::Accepted)
          {
          uCalcResultStruct result = usrDlg->getCalcResult();
          }
          }@

          Something like that.
          uCalcResultStruct is some your struct which can store all data you need.

          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