mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
Qt5: add plugins to the Qt paths when app is running under mswindows and Qt dll's are deployed inside app dir.
git-svn-id: trunk@63083 -
This commit is contained in:
parent
4dec45a42b
commit
35d427d277
@ -17,6 +17,10 @@
|
||||
Constructor for the class.
|
||||
------------------------------------------------------------------------------}
|
||||
constructor TQtWidgetSet.Create;
|
||||
{$IFDEF MSWINDOWS}
|
||||
var
|
||||
WStr: WideString;
|
||||
{$ENDIF}
|
||||
begin
|
||||
FLastWFPMousePos := Point(MaxInt, MaxInt);
|
||||
FLastWFPResult := 0;
|
||||
@ -26,6 +30,11 @@ begin
|
||||
App := QApplicationH(QCoreApplication_instance())
|
||||
else
|
||||
begin
|
||||
{$IFDEF MSWINDOWS}
|
||||
//add directory plugins to the Qt paths if Qt is distributed with application under mswindows.
|
||||
WStr := 'plugins';
|
||||
QCoreApplication_addLibraryPath(@WStr);
|
||||
{$ENDIF}
|
||||
QCoreApplication_setAttribute(QtAA_DisableHighDpiScaling, True);
|
||||
App := QApplication_Create(@argc, argv);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user