No OnPaint Event for Qt lazarus / 70-OpenGL ---------------------------------------------------------------------- Ocye · 2015-10-25 11:50 Simple test scenario: place a TOpenGLControl on a form, add a OnPaint event with some code and set a breakpoint. With Gtk2 there is no problem but on Qt the event is not fired. AFAIR it worked well (more or less) some time ago. What can I do? Lazarus 1.5 r50138M FPC 2.6.4 x86_64-linux-qt plasmashell -v >plasmashell 5.4.2 qtdiag (same for qtdiag-qt5) >Qt 5.5.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.2.0) on "xcb" >OS: Arch Linux [linux version 4.2.3-1-ARCH] ---------------------------------------------------------------------- zeljko · 2015-10-25 14:48 1. Painting in qtlcl haven't been changed for years. 2. We are using Qt4 , not Qt5 , so what's your qt4 version ? ---------------------------------------------------------------------- Ocye · 2015-10-25 21:10 Quote from: zeljko on October 25, 2015, 03:48:54 pm1. Painting in qtlcl haven't been changed for years.Hm... I got a new PC, but updated the KDE4 to P5 before without problems. But should double check this. The old PC is still here. Quote from: zeljko on October 25, 2015, 03:48:54 pm2. We are using Qt4 , not Qt5 , so what's your qt4 version ? How to check qt4 version? qtconfig-qt4 > help tells me "This program uses Qt version 4.8.7." ---------------------------------------------------------------------- Ocye · 2015-11-01 13:32 No success. Good scenario to test is /examples/openglcontrol that uses Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i with OpenGLControl1 do begin      OnPaint:=@OpenGLControl1Paint;which is never called. Quote from: ldd ./openglcontrol_demo |grep Qt        libQt4Pas.so.5 => /usr/local/lib/libQt4Pas.so.5 (0x00007f79e5bdd000)         libQtWebKit.so.4 => /usr/lib/libQtWebKit.so.4 (0x00007f79e285a000)         libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x00007f79e1b21000)         libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0x00007f79e17cd000)         libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x00007f79e12c5000)         libQtXmlPatterns.so.4 => /usr/lib/libQtXmlPatterns.so.4 (0x00007f79dbbda000)         libQtOpenGL.so.4 => /usr/lib/libQtOpenGL.so.4 (0x00007f79db8d6000) Quote from: ls -al /usr/lib/libQtOpenGL.so.4lrwxrwxrwx 1 root root 20 16. Jul 06:24 /usr/lib/libQtOpenGL.so.4 -> libQtOpenGL.so.4.8.7 Looks not suspicious, the only change left is KDE 4 to 5. Trying now to double check with another ISO based on KDE4... ---------------------------------------------------------------------- zeljko · 2015-11-01 16:48 Qt4 version is ok. Don't know why it does not call OnPaint. Maybe you should try same binary under some older distro with Qt-4.8.5 or Qt-4.8.6 (virtual machine or similar). Haven't look into qt-4.8.7 changes yet, so don't know what could be the problem. ---------------------------------------------------------------------- JuhaManninen · 2015-11-01 17:02 OpenGLControl did not have any support for QT until recently. I remember Mattias added some support. Do you know about it Zeljko? ---------------------------------------------------------------------- Ocye · 2015-11-01 21:31 Quote from: zeljko on November 01, 2015, 05:48:27 pmMaybe you should try same binary under some older distro with Qt-4.8.5 or Qt-4.8.6 (virtual machine or similar).Downloaded Knoppix distribution just to face the problem that I can compile only for 64bit. ;-) Maybe interesting as well: compiling against Qt and running this app on MacOS works fine. But I add the full Qt repository to the app there.