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. How to send variable from Dialog class to main window class?

How to send variable from Dialog class to main window class?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.8k 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.
  • A Offline
    A Offline
    aurora
    wrote on last edited by
    #1

    Hi all,
    I have one main window class and another Dialog class....
    I'm calling Dialog from Main window by creating pointer as shown below....

    Dialog *d= new Dialog(this);
    d->show();

    and performing all the operation in Dialog(which actually creates a creates and updates a table widget and then displays in the Dialog)
    But i want to Display that table widget inside the Main window...
    Please give me some hint how can i do that?

    My try:
    after updating table i'm emitting a signal and that signal is used in Main window to display the table, but displaying table program crashes......

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      How about moving your table widget from the dialog into the mainwindow?

      You should not need to send signals to get the table widget updated.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aurora
        wrote on last edited by
        #3

        [quote author="Tobias Hunger" date="1326984629"]How about moving your table widget from the dialog into the mainwindow?

        You should not need to send signals to get the table widget updated.[/quote]

        Thank u for your reply..

        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