Avatar ·

How does QScrollArea work?

📁 work

Please explain how to work with QScrollArea. I made it in the designer, but it doesn't work. I couldn't find any proper solutions on the internet.

Avatar ·

It's correctly noted that these concepts have the same role in OOP, object-oriented programming: it's the object's reference to itself. It allows:

  1. Accessing its own fields (i.e., variables) and methods;
  2. Passing the object itself to other functions and objects.

Python and C++ differ in that the first part in C++ (also in Java, C# and Objective-C) is implemented automatically, we don't necessarily have to constantly write self or this. However, this creates either confusion between object variables and local ones, or constant use of underscores in variable names, which, in my opinion, is not much better than referencing the object. On the contrary, in Python (and, na

Log in to leave an answer

Blogs