Results 1 to 5 of 5

Thread: ui, mainwindow and other classes

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2012
    Posts
    46
    Thanks
    11
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default ui, mainwindow and other classes

    Good morning, all --

    Okay, this question falls into a theoretical category not technical (I've figured that one out). I have a large mainwindow application and up until now I've kept most of the data handling in the slots that I've created in my mainwindow class, but I'm trying to redesign it as I've become more familiar with OOD techniques (and I'm not under a time constraint), so instead of handling both the data and ui aspect of, for instance, creating a new user in Mainwindow:n_NewUserPB_clicked(), I'm having that class call UserManager::CreateNewUser() to handle it.

    So, my question is this: should I leave the ui management in my Mainwindow class and have my UserManager class handle only the model processing, or should I have UserManager handle both? I'm leaning strongly toward option one as it separate the two.

    Thoughts? Thanks!


    Kodi
    Last edited by mtnbiker66; 1st February 2013 at 17:54.

Similar Threads

  1. Replies: 0
    Last Post: 6th November 2011, 09:22
  2. How to access Classes from another Classes
    By revellix in forum General Programming
    Replies: 1
    Last Post: 4th August 2011, 15:39
  3. Replies: 1
    Last Post: 12th April 2011, 09:53
  4. construction of classes within classes
    By mobucl in forum Newbie
    Replies: 8
    Last Post: 10th January 2011, 13:51
  5. fax classes in qt
    By dyams in forum Qt Programming
    Replies: 5
    Last Post: 7th September 2007, 09:14

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.