Results 1 to 2 of 2

Thread: MainWIndow and Modularisation

  1. #1
    Join Date
    Aug 2015
    Posts
    25
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default MainWIndow and Modularisation

    Hi,

    this Is only partial a Qt Topic so I hope this is the right Forum for this.

    The Situation:
    There are two Qt Projects I like to combine.
    I have one Main Program, and a smaller Test program.
    After the tests turned out to be working I now want to integrate the smaller Program into the bigger one.
    This is no problem with everything that was subclassed, cause those parts are in their own files anyway.
    But what about the functions I put in MainWindwo?
    Can I put them in separate files too? Or do I have to reimplement them in my Main program?
    What is the right way to do this?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: MainWIndow and Modularisation

    Anything that does not directly access the "ui" pointer can be moved to another class.

    Things that access the "ui" pointer for the central widget or its content can likely be moved out of the main window if the central widget is moved to its own form class.

    Cheers,
    _

Similar Threads

  1. mainwindow
    By kaals in forum Newbie
    Replies: 1
    Last Post: 25th August 2012, 20:25
  2. Replies: 0
    Last Post: 6th November 2011, 09:22
  3. Replies: 1
    Last Post: 12th April 2011, 09:53
  4. Replies: 1
    Last Post: 6th July 2010, 12:03
  5. MainWindow
    By amagdy.ibrahim in forum Newbie
    Replies: 6
    Last Post: 14th June 2008, 14:12

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.