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. User&Role depending UI: Ideas?

User&Role depending UI: Ideas?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 555 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.
  • ademmlerA Offline
    ademmlerA Offline
    ademmler
    wrote on last edited by
    #1

    Hi,

    I am looking for the best way to create a User/Role depending UI.
    As Example: 3 types of user #1 the pro #2 the experienced #3 beginner

    Idea1:
    Create 3 functions which are enabling/disableing elements accordingly.

    Idea2:
    Is there some "object" params I could use/set? to the objects.

    Idea3:
    Is there some exiting methods or rejects offering this

    I am open for your ideas ...
    thx Alexander

    JonBJ 1 Reply Last reply
    0
    • ademmlerA ademmler

      Hi,

      I am looking for the best way to create a User/Role depending UI.
      As Example: 3 types of user #1 the pro #2 the experienced #3 beginner

      Idea1:
      Create 3 functions which are enabling/disableing elements accordingly.

      Idea2:
      Is there some "object" params I could use/set? to the objects.

      Idea3:
      Is there some exiting methods or rejects offering this

      I am open for your ideas ...
      thx Alexander

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @ademmler
      I would not necessarily do it this way, but any QObject --- so any QWidget --- can have any arbitrary properties assigned to it. You could choose to use that to "mark" widgets with which "user/role" you want it be shown under. I believe you can assign these in Qt Designer, which is a nice plus if you are creating your UI with that.

      ademmlerA 1 Reply Last reply
      2
      • JonBJ JonB

        @ademmler
        I would not necessarily do it this way, but any QObject --- so any QWidget --- can have any arbitrary properties assigned to it. You could choose to use that to "mark" widgets with which "user/role" you want it be shown under. I believe you can assign these in Qt Designer, which is a nice plus if you are creating your UI with that.

        ademmlerA Offline
        ademmlerA Offline
        ademmler
        wrote on last edited by
        #3

        @JonB Dear JonB -thx for response.

        You wrote "I would do it this way" - which way you meant:Idea 1 or 2 or 3 ?

        JonBJ 1 Reply Last reply
        0
        • ademmlerA ademmler

          @JonB Dear JonB -thx for response.

          You wrote "I would do it this way" - which way you meant:Idea 1 or 2 or 3 ?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @ademmler
          For all 3 of them? You're looking for just one suggestion, aren't you! It relates to your option #2.

          I actually wrote "I would not necessarily do it this way". Though I didn't mean there is anything wrong with it. Just there are loads of ways of doing something like this, so it depends just what you want to achieve and how you want to accomplish it. It is a fair way, especially perhaps if it works in Designer and that is beneficial to you.

          ademmlerA 1 Reply Last reply
          0
          • JonBJ JonB

            @ademmler
            For all 3 of them? You're looking for just one suggestion, aren't you! It relates to your option #2.

            I actually wrote "I would not necessarily do it this way". Though I didn't mean there is anything wrong with it. Just there are loads of ways of doing something like this, so it depends just what you want to achieve and how you want to accomplish it. It is a fair way, especially perhaps if it works in Designer and that is beneficial to you.

            ademmlerA Offline
            ademmlerA Offline
            ademmler
            wrote on last edited by ademmler
            #5

            @JonB Forgive me I have overseen the "not" hence I was guessing which one it relates to.
            In this case thinks for your new suggestion! Perfect.

            I work in Designer - but I have not found this parameter for an object. Where does it exists?

            JonBJ 1 Reply Last reply
            0
            • ademmlerA ademmler

              @JonB Forgive me I have overseen the "not" hence I was guessing which one it relates to.
              In this case thinks for your new suggestion! Perfect.

              I work in Designer - but I have not found this parameter for an object. Where does it exists?

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @ademmler
              Dynamic Properties describes how to add your own. It's via the cfcc1fbe-26b8-4dff-90e2-7493d8380f51-image.png button!

              ademmlerA 1 Reply Last reply
              3
              • JonBJ JonB

                @ademmler
                Dynamic Properties describes how to add your own. It's via the cfcc1fbe-26b8-4dff-90e2-7493d8380f51-image.png button!

                ademmlerA Offline
                ademmlerA Offline
                ademmler
                wrote on last edited by
                #7

                @JonB I take this idea ...thx ...

                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