Solved User&Role depending UI: Ideas?
-
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 beginnerIdea1:
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 thisI am open for your ideas ...
thx Alexander -
@ademmler
I would not necessarily do it this way, but anyQObject
--- so anyQWidget
--- 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. -
@ademmler
I would not necessarily do it this way, but anyQObject
--- so anyQWidget
--- 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. -
@JonB Dear JonB -thx for response.
You wrote "I would do it this way" - which way you meant:Idea 1 or 2 or 3 ?
-
@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.
-
@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?
-
@ademmler
Dynamic Properties describes how to add your own. It's via the button! -
@JonB I take this idea ...thx ...