mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 04:19:12 +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 for the class.
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
constructor TQtWidgetSet.Create;
|
constructor TQtWidgetSet.Create;
|
||||||
|
{$IFDEF MSWINDOWS}
|
||||||
|
var
|
||||||
|
WStr: WideString;
|
||||||
|
{$ENDIF}
|
||||||
begin
|
begin
|
||||||
FLastWFPMousePos := Point(MaxInt, MaxInt);
|
FLastWFPMousePos := Point(MaxInt, MaxInt);
|
||||||
FLastWFPResult := 0;
|
FLastWFPResult := 0;
|
||||||
@ -26,6 +30,11 @@ begin
|
|||||||
App := QApplicationH(QCoreApplication_instance())
|
App := QApplicationH(QCoreApplication_instance())
|
||||||
else
|
else
|
||||||
begin
|
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);
|
QCoreApplication_setAttribute(QtAA_DisableHighDpiScaling, True);
|
||||||
App := QApplication_Create(@argc, argv);
|
App := QApplication_Create(@argc, argv);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user