Results 1 to 2 of 2

Thread: dialog button connected into mainwindow

  1. #1
    Join Date
    Oct 2011
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default dialog button connected into mainwindow

    I want when push dialog's button to run a function of mainwindow
    Dialog object called inDlg
    dialog's button called submitInsert
    Can I connect dialog's button into mainwindow?

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: dialog button connected into mainwindow

    Can I connect dialog's button into mainwindow?
    You can.
    You can also connect the dialog's button to a dialog's signal, and connect this signal to mainWindow slot, it seems more OOP.

Similar Threads

  1. Replies: 2
    Last Post: 26th April 2011, 11:44
  2. How to call a dialog from a mainwindow
    By luiz4um in forum Qt Programming
    Replies: 26
    Last Post: 29th June 2010, 10:41
  3. Open Dialog from MainWindow.
    By halvors in forum Qt Programming
    Replies: 8
    Last Post: 1st April 2010, 01:09
  4. MainWindow Button
    By waynew in forum Newbie
    Replies: 8
    Last Post: 27th December 2009, 14:14
  5. Communication between MainWindow and a dialog
    By Backslash in forum Newbie
    Replies: 9
    Last Post: 3rd August 2007, 04:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.