How to make the dialog stay only on top of the 3ds max window

How to make the dialog stay only on top of the 3ds max window

Ken_GordonQRB22
Participant Participant
625 Views
4 Replies
Message 1 of 5

How to make the dialog stay only on top of the 3ds max window

Ken_GordonQRB22
Participant
Participant

I made a QT dialog, tried several methods, I use dialog->show() so that the dialog does not block the 3dsmax window, but I can’t get the dialog to be on top of only the 3dsmax window, the window either hides when the window is activated 3dsmax or hangs on top of all the windows. Tell me which way to dig?

0 Likes
626 Views
4 Replies
Replies (4)
Message 2 of 5

denisT.MaxDoctor
Advisor
Advisor

@Ken_GordonQRB22 wrote:

I made a QT dialog, tried several methods, I use dialog->show() so that the dialog does not block the 3dsmax window, but I can’t get the dialog to be on top of only the 3dsmax window, the window either hides when the window is activated 3dsmax or hangs on top of all the windows. Tell me which way to dig?


Are we talking about c++?

0 Likes
Message 3 of 5

denisT.MaxDoctor
Advisor
Advisor

In a nutshell, you must specify the parent (owner) of the Qt dialog, which in our case is the MAX main window.

0 Likes
Message 4 of 5

Ken_GordonQRB22
Participant
Participant

Yes, I forgot to mention, windows, C++, Qt, 3dsmax SDK 2024

and thanks, I already figured it out and found the error )

0 Likes
Message 5 of 5

istan
Advisor
Advisor
See: GetQmaxMainWindow()
0 Likes