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. How to implement a framework and objects scheme
Forum Updated to NodeBB v4.3 + New Features

How to implement a framework and objects scheme

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 468 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.
  • M Offline
    M Offline
    marius63
    wrote on last edited by
    #1

    I like to program interfaces as follows. Define a framework which is a structure of places to put widgets on, and then have objects, and put them there. All programmatically. I more or less can do this in Qt, but quickly get confused by the many possible ways of doing it and my code becames ugly and buggy. I would like to know the proper idiom to do this in Qt. Example:

    Structure:
    @


    | place1 | place2 |
    |||
    | |
    | place3 |
    |_____________________|
    @

    And objects ob1 .. ob5, each of which must be possible to fit in any place1 .. place3.
    Furthermore, I want be possible for the same object to appear on more than one place, example ob1 on place1 and place3.
    And changes to ob1 be reflected in both places.
    This is more for output-only objects i.e. view-olny widgets like labels, graphicviews, etc.

    Which classes should I use?
    Is there an example?
    Thanks a lot.

    1 Reply Last reply
    0

    • Login

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