I am new to user interfaces. I am currently working on a user interface design for part of the code that I have in C ++. I decided to use QT to create a user interface.
Now I am most concerned about what is the proper way to branch the user interface from logic. I have some level of data that should be accessible from different parts of my interface (different widgets, different windows). Some user interface components can represent or even modify data at the same time.
Do I have to represent the data layer as a single singlet and use this singleton in the user interface? An alternative is probably to pass a pointer to the data to each and every component of the user interface, which, IMHO, smells bad.
In an application, where is the best place to translate between UI-related data structures such as QList, QVector, QString and the data structures that I use in my data layer (STL + Boost). Maybe some kind of proxy layer is required in the middle?
Can someone recommend me a good book, article, or any other source of knowledge related to my question? Any ideas or advice you can give me are also very welcome.
Thank.