Difference between transitional parent and parent in qt

I am confused with the parent and temporary parent in qt.

  • Is it possible to have both transitional and parental windows for the same window?
  • For the top-level window (widgets such as pop-ups), are the parent settings set and the parent set to NULL?

Can you share a clear idea of ​​the parent and temporary parent in qt.

+4
source share
1 answer

Is it possible to have both transitional and parental windows for the same window?

, . , a QWindow ( QWidget) -a QObject. , , .

, QWindow ( QWidget) , Qt::Window. , - .

(, ), , .

( Popup) , - nullptr?

, , . - parent / , Qt::Window .

+2

Source: https://habr.com/ru/post/1684294/


All Articles