[Lazarus] Qt5 build of program, modal dialogs go to background

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Qt5 build of program, modal dialogs go to background

Free Pascal - Lazarus mailing list
I made Qt5 build of CudaText, pls test and see is my bug present? I test
on Ubuntu w/o Qt5:

user@PC:~$ qmake --version
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such
file or directory
user@PC:~$ qmake-qt5 --version
Command 'qmake-qt5' not found, did you mean:
   command 'qmake-qt4' from deb qt4-qmake (4:4.8.7+dfsg-7ubuntu1)

steps.

- get beta of Qt5 build
https://sourceforge.net/projects/cudatext/files/beta_version/

- configure Python engine in it:
https://wiki.freepascal.org/CudaText#Python_on_Linux.2C_BSD.2C_Solaris

- open Plugins / Options Editor dialog, and drag this dialog by it
caption. Here dialog always jumps to BACK of main cudatext dialog during
dragging (and it jumps by pixels too). About dialog don't jump.


--
Regards,
Alexey

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Qt5 build of program, modal dialogs go to background

Free Pascal - Lazarus mailing list
On 10/26/19 6:25 AM, AlexeyT via lazarus wrote:

> I made Qt5 build of CudaText, pls test and see is my bug present? I test
> on Ubuntu w/o Qt5:
>
> user@PC:~$ qmake --version
> qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such
> file or directory
> user@PC:~$ qmake-qt5 --version
> Command 'qmake-qt5' not found, did you mean:
>    command 'qmake-qt4' from deb qt4-qmake (4:4.8.7+dfsg-7ubuntu1)
>
> steps.
>
> - get beta of Qt5 build
> https://sourceforge.net/projects/cudatext/files/beta_version/
>
> - configure Python engine in it:
> https://wiki.freepascal.org/CudaText#Python_on_Linux.2C_BSD.2C_Solaris
>
> - open Plugins / Options Editor dialog, and drag this dialog by it
> caption. Here dialog always jumps to BACK of main cudatext dialog during
> dragging (and it jumps by pixels too). About dialog don't jump.
>

Sorry, but I don't understand what is exact problem. You cannot build
libQt5Pas with qmake or you have problem with Qt5LCL application ?
I'm using LinuxMint 19.2 on my laptop and there I have qmake (qt5) and
qmake-qt4 installed.

zeljko

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Qt5 build of program, modal dialogs go to background

Free Pascal - Lazarus mailing list
I did install the libqt5pas (on Ubuntu x64), i just cannot detect qt5
version from terminal. The problem is with LCL application CudaText:

a) its dialog Plugins / Options Editor cannot be dragged by mouse, it
always jumps to back of main Cudatext window

b) new problem found in application CudaText on FEDORA x64. It has KDE
Plasma with qt5 and libqt5pas. (sudo yum install qt5pas). When I call
dialog Plugins / Options Editor, Cudatext crashes:

./cudatext: undefined symbol: QTextEdit_setPlaceholderText


On 26.10.2019 9:49, zeljko wrote:
> Sorry, but I don't understand what is exact problem. You cannot build
> libQt5Pas with qmake or you have problem with Qt5LCL application ?
> I'm using LinuxMint 19.2 on my laptop and there I have qmake (qt5) and
> qmake-qt4 installed.
>
> zeljko

--
Regards,
Alexey

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Qt5 bindings misses QTextEdit_setPlaceholderText

Free Pascal - Lazarus mailing list

This looks like missed export in qt5.pas

https://raw.githubusercontent.com/graemeg/lazarus/upstream/lcl/interfaces/qt5/cbindings/qt5.pas

file has the

procedure QLineEdit_setPlaceholderText(handle: QLineEditH; AnonParam1: PWideString); cdecl; external Qt5PasLib name 'QLineEdit_setPlaceholderText';

but don't have QTextEdit_setPlaceholderText.


On 26.10.2019 10:01, AlexeyT via lazarus wrote:
./cudatext: undefined symbol: QTextEdit_setPlaceholderText
-- 
Regards,
Alexey

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Qt5 bindings misses QTextEdit_setPlaceholderText

Free Pascal - Lazarus mailing list
On 10/26/19 10:22 AM, AlexeyT via lazarus wrote:
> This looks like missed export in qt5.pas
>
> https://raw.githubusercontent.com/graemeg/lazarus/upstream/lcl/interfaces/qt5/cbindings/qt5.pas
>
> file has the
>
> procedure QLineEdit_setPlaceholderText(handle: QLineEditH; AnonParam1: PWideString); cdecl; external Qt5PasLib name 'QLineEdit_setPlaceholderText';
>
> but don't have QTextEdit_setPlaceholderText.

No, that means that distro packager did not update libQt5Pas from
lazarus trunk.
Latest version is 1.2.7, not 1.2.6.

zeljko

>
>
> On 26.10.2019 10:01, AlexeyT via lazarus wrote:
>> ./cudatext: undefined symbol: QTextEdit_setPlaceholderText
>
> --
> Regards,
> Alexey
>
>

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Qt5 bindings misses QTextEdit_setPlaceholderText

Free Pascal - Lazarus mailing list
That means that you have to update/compile the libqt5pas.so from sources...

Em sáb, 26 de out de 2019 às 07:39, zeljko via lazarus <[hidden email]> escreveu:
On 10/26/19 10:22 AM, AlexeyT via lazarus wrote:
> This looks like missed export in qt5.pas
>
> https://raw.githubusercontent.com/graemeg/lazarus/upstream/lcl/interfaces/qt5/cbindings/qt5.pas
>
> file has the
>
> procedure QLineEdit_setPlaceholderText(handle: QLineEditH; AnonParam1: PWideString); cdecl; external Qt5PasLib name 'QLineEdit_setPlaceholderText';
>
> but don't have QTextEdit_setPlaceholderText.

No, that means that distro packager did not update libQt5Pas from
lazarus trunk.
Latest version is 1.2.7, not 1.2.6.

zeljko

>
>
> On 26.10.2019 10:01, AlexeyT via lazarus wrote:
>> ./cudatext: undefined symbol: QTextEdit_setPlaceholderText
>
> --
> Regards,
> Alexey
>
>

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus


--
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus