Skip to content

Commit 7bf0291

Browse files
committed
Logging - add trace message about setting QT_QPA_PLATFORM
1 parent d4eb0b5 commit 7bf0291

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

occt-qt-tools/OcctQtTools.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ void OcctQtTools::qtGlPlatformSetup()
137137
{
138138
aQpaPlat.SetValue("wayland");
139139
aQpaPlat.Build();
140+
Message::SendTrace() << "OcctQtTools: forced QT_QPA_PLATFORM=" << aQpaPlat.Value();
140141
}
141142
#else
142143
// Qt6 tries to use Wayland platform by default, which is incompatible with OCCT depending on Xlib;
@@ -146,6 +147,7 @@ void OcctQtTools::qtGlPlatformSetup()
146147
{
147148
aQpaPlat.SetValue("xcb");
148149
aQpaPlat.Build();
150+
Message::SendTrace() << "OcctQtTools: forced QT_QPA_PLATFORM=" << aQpaPlat.Value();
149151
}
150152
#endif
151153

0 commit comments

Comments
 (0)