Results 1 to 4 of 4

Thread: Qt Software acrchitecture sugestions.

  1. #1
    Join Date
    May 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Qt Software acrchitecture sugestions.

    Hello,

    I am an professional embedded C programmer that needs to create an application for one of our devices.

    I would need some sugestions on how to organize my software.

    Let me explain how the software should behave. There are 3 main views or menus. One for configuring and extracting data of our devices. Another one to export data, and finally one to visualize data. Let call them Control View, Data View and Analysis View.

    At Control View there is an table where you can select the device you are going to work with. The software should periadically poll the connected devices to check if they are alive and to request some basic information to populate that table. Wherever you select some device from the table, you can control and extract data from that device using some buttons.

    At the Data View, the last extracted data can be exported to some .txt according to some selected configurations (spacers and so on).

    And finally, at the Analysis View, several plots and statiscs are generated from the extracted data.

    I would like some sugestions and examples on how to organize the software and the interaction of the GUI frontend with the software backend. When i talk about organization, i mean both in an architecture point of view and source files point of view.

    Let me know if i need to give any extra information.

    Thank you

  2. #2
    Join Date
    May 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Qt Software acrchitecture sugestions.

    After some study i notice that I am going to need to use single inheritance to better organize the logic of my code. One very simple question. Considering that my UI was created with QT Creator, how can I create a class for each page of my QStackedWidget? Any example?

    Regards,

    Luis

  3. #3
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Qt Software acrchitecture sugestions.

    Any example?
    Have you already checked out the Config Dialog Example? In that example is a separate class for each page of the QStackedWidget created. Of course you can use a designer UI file if you don't want to write everything manually like it is done in the example.

  4. #4
    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: Qt Software acrchitecture sugestions.

    Quote Originally Posted by luisf.rossi View Post
    Considering that my UI was created with QT Creator, how can I create a class for each page of my QStackedWidget?
    You have multiple options:

    • Create the whole widget (including all pages) in designer in one go
    • Create the main form (with the stacked widget) and the page widgets separately in designer and promote each page to the respective page widget
    • Similar to the second option but add the pages in code


    Cheers,
    _

Similar Threads

  1. Replies: 0
    Last Post: 11th January 2013, 12:21
  2. Software in C#
    By Subline in forum General Programming
    Replies: 1
    Last Post: 28th June 2012, 13:54
  3. Software update
    By nosleduc in forum General Programming
    Replies: 0
    Last Post: 5th September 2011, 23:11
  4. Qt/Mac Software
    By nareshqt in forum Installation and Deployment
    Replies: 0
    Last Post: 11th April 2008, 05:59
  5. Qt software
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 26th June 2007, 22:07

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.