Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-10

Qt5 build of program, modal dialogs go to background

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

AlexeyT

I made Qt5 build of CudaText, pls test and see is my bug present? I test on Ubuntu w/o Qt5:

user at PC:~$ qmake --version
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
user at 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

Reply by email

zeljko
to AlexeyT
AlexeyT wrote 22 lines
I made Qt5 build of CudaText, pls test and see is my bug present? I test on Ubuntu w/o Qt5: user at PC:~$ qmake --version qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory user at 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

Reply by email

AlexeyT
to zeljko

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

zeljko wrote 6 lines
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

Reply by email

AlexeyT
to AlexeyT

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.

AlexeyT wrote
./cudatext: undefined symbol: QTextEdit_setPlaceholderText
Regards, Alexey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20191026/100b4dbb/attachment.html>

Reply by email

zeljko
to AlexeyT
AlexeyT wrote 9 lines
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

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

Reply by email

Fabio Luis Girardi
to zeljko

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 <

Show quoted text 38 lines
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 https://lists.lazarus-ide.org/listinfo/lazarus
The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20191028/df6c8753/attachment.html>

Reply by email