A
A
Anton2015-11-18 17:39:25
Qt
Anton, 2015-11-18 17:39:25

How to implement authorization and session support in Qt?

Hello!
It is necessary to write a small program where an authorization form will be displayed at startup. Interested in two questions:
1. How exactly to implement this form (after all, a simple arrangement of fields is clearly not enough)? Is it necessary to place them in some area, and then, on submit, process the values ​​of the fields that are included in it?
2. How to properly maintain an authorized user session?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2015-11-18
@hummingbird

1) Locate in what area? We create a "Form Class", simply arrange the fields and the button (you can use layout, yes), write the click handler in the class.
2) There is no way without details here, it depends on the API. Often, after authorization, they give some kind of session token, which you just need to save and use in all requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question