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. Where to save a Facade class and other non-GUI classes?
Qt 6.11 is out! See what's new in the release blog

Where to save a Facade class and other non-GUI classes?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 781 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.
  • W Offline
    W Offline
    WhatIf
    wrote on last edited by
    #1

    I'm starting to learn Qt and OOP C++. While the current test project is not big, I want to use a Facade class to decouple the GUI from the core classes but don't know in which folder to save the Facade class and the other core classes. Currently, I have the Headers, Sources, and Forms folders created by Qt. Just want to learn the best way to save these classes in case this current project gets bigger and in future projects I code so it won't be a mess of classes.

    Here is a link to the Facade example that I will be implementing:

    http://www.bogotobogo.com/DesignPatterns/facade.php

    Not the exact example but a Facade class and 2 other classes that aren't related.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      hI
      is there any reason not just to save them with the other files?
      The Facade pattern presents a sub system to the rest of application
      but its not about hiding the actual files,
      but to give a easier view of multiple objects or interfaces.

      For bigger projects we often use subfolders for different modules
      like
      networking
      database
      and patterns would go into the same folder as what ever it helps with.

      since you navigate in the editor, having many files in same folder is not such an issue. (IMHO)

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved