Re: [Interest] Three-file modules vs. moc

2020-09-01 Thread Thiago Macieira
On Tuesday, 1 September 2020 14:17:50 PDT Bernhard Lindner wrote: > Anyway, how does cmake behave regarding the described moc target detection > problem? Does it work smarter than qmake? If you turn automoc on, it tries to guess which moc files need to be generated and which ones are #included

Re: [Interest] Three-file modules vs. moc

2020-09-01 Thread Bernhard Lindner
Hi Thiago! > > Well, what about coming cmake in Qt6? I assume Qt Creator will support cmake > > based projects for application developers. Do you see a chance to fix the > > problem using the new tool set? > > Qt Creator has supported CMake for 10 years or more. Building Qt applications > with

Re: [Interest] Three-file modules vs. moc

2020-09-01 Thread Thiago Macieira
On Tuesday, 1 September 2020 12:29:29 PDT Bernhard Lindner wrote: > Well, what about coming cmake in Qt6? I assume Qt Creator will support cmake > based projects for application developers. Do you see a chance to fix the > problem using the new tool set? Qt Creator has supported CMake for 10

Re: [Interest] Three-file modules vs. moc

2020-09-01 Thread Bernhard Lindner
Hi Thiago! > Correct, qmake does not preprocess, but it does try to guess what your > dependencies are. This is not restricted to moc outputs: any #include found > that match a source file is automatically removed from the list of targets to > build too. Oh my! :-( > A more correct way to do

Re: [Interest] Qt3D widget

2020-09-01 Thread Mike Krus via Interest
Hi Qt 3D source code has an example of how to use render capture in the manual tests. However this is probably not the right way to do it as 1/ it would require another FBO on top of the one QOpenGLWidget uses already; 2/ it transfers the image to the CPU which is not needed here. Think the

[Interest] Qt3D widget

2020-09-01 Thread Florian Blume
Hi, I'm trying to implement a Qt3D widget since createWindowContainer is not suitable for me (always draws the Qt3DWindow on top of everything). I've already asked a Stackverflow question (https://stackoverflow.com/questions/63686309/use-qt3d-offscreen-rendered-texture-in-opengl) because I ran

Re: [Interest] Three-file modules vs. moc

2020-09-01 Thread Thiago Macieira
On Monday, 31 August 2020 09:31:17 PDT Bernhard Lindner wrote: > It appears to me that qmake is looking for "#include "moc_module.cpp"" using > some simple regular expression which does not take any conditional > compilation into account. Is this correct? Correct, qmake does not preprocess, but

[Interest] Qt Creator + Incredibuild ?

2020-09-01 Thread David M. Cotter
i see in the 4.13 release notes: > Also many thanks to IncrediBuild for contributing their Qt Creator > integration > ! > (You need to open Help > About Plugins (or Qt Creator > About Plugins on >

Re: [Interest] Three-file modules vs. moc

2020-09-01 Thread Bernhard Lindner
Hi! > Add to your module.cpp: > > #include "moc_module.cpp" > > This is recommended anyway, regardless of your problem. Always #include the > module output for your headers in your corresponding .cpp files. I tried a variant of the above using C++17 __has_include: #if