Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-27 Thread Alan W. Irwin
Hi António: I have just pushed your (modified) commit plplot-5.14.0-12-gaa0dd85fc. (By the way, "plplot-5.14.0-12-gaa0dd85fc" is the result of "git-describe aa0dd85fc" which is a convenient way to show aa0dd85fc is the 12th commit after plplot-5.14.0.) Congratulations on this result! Your code

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-27 Thread António Rodrigues Tomé
Hi Alan glad things have solved out. You gave a full explanation my approach was more intuitive. as for testing I haven't performed nothing formal. in fact I have a qt gui application with the ex01c and i usually play with it to figure things up. Not a standard plplot way of doing things but here

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-27 Thread Alan W. Irwin
On 2018-12-27 08:58- António Rodrigues Tomé wrote: [...] Hi Alan. Let start by saying that my English sucks. I've never learn it when I was young only latter on on life I've learned some english reading math and physics text books. Hi António: Actually, I admire your ability to pick up

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-27 Thread António Rodrigues Tomé
Just one more thing the fact that a single RGB seems to work when you have a kind of semi-transparency a layer is easily explained because one is saving only the RGB resulting from the merge operation no need to save the alpha value (becauuse at the end you have a pixel with a color resulting

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-27 Thread António Rodrigues Tomé
On Thu, Dec 27, 2018 at 2:38 AM Alan W. Irwin wrote: > On 2018-12-27 01:04- António Rodrigues Tomé wrote: > > > Hi Alan > > you must revisit the -bg comand argument. > [...] > > P.s. > > > > may it be that the -bg argument is only called after the device > constructor > > has been valled? >

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-26 Thread António Rodrigues Tomé
Hi Alan you must revisit the -bg comand argument. you are right with your command either with the changed version or with the original version one gets the opaque blue but let us put exactly the same directly in code. plscolbga(0,0,255,0.1); plinit(); and then perform the command ./x30c

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-26 Thread Alan W. Irwin
On 2018-12-26 22:27- António Rodrigues Tomé wrote: HI Alan I'll try to answer your question. But first a little clarification in my system example 30 works exactly the same way with my changes or without them. But really that was not the question. just try to put in xo1c example

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-26 Thread Alan W. Irwin
On 2018-12-26 13:00-0800 Alan W. Irwin wrote: [...] Here are two alternative suggestions: "Fix background transparency in the raster qt Drivers" or "Fix transparency in the raster qt Drivers" Let me know which of these you prefer. P.S. That should have been "raster qt devices" rather

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-26 Thread Alan W. Irwin
On 2018-12-25 23:06- António Rodrigues Tomé wrote: Hi Alain sorry I haven carefully read up to the end all the README.developers file here the patch Hi António: Thanks for those commits. My apologies in advance for the number of questions I have for you in this reply, but I would

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-25 Thread António Rodrigues Tomé
Hi Alain sorry I haven carefully read up to the end all the README.developers file here the patch On Tue, Dec 25, 2018 at 9:54 PM Alan W. Irwin wrote: > On 2018-12-25 17:54- António Rodrigues Tomé wrote: > > > Hi alan > > I do not pretend to understand everything you are asking for. > >

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-25 Thread Alan W. Irwin
On 2018-12-25 17:54- António Rodrigues Tomé wrote: Hi alan I do not pretend to understand everything you are asking for. But i think the changes I purpose completely solve the alpha problem in qt raster drivers. 1) I send you three files of the same plot with a yellow background with

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-23 Thread Alan W. Irwin
On 2018-12-23 10:14- António Rodrigues Tomé wrote: Just an update. qt drivers do not behave well with alfa values. [...] I'll try to upload this changes using git as I cannot find any other problem with qt drivers at least for the use I make of them. (well memqt does not work quite well

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-23 Thread António Rodrigues Tomé
Just an update. qt drivers do not behave well with alfa values. as the background was being filled with the instruction QBrush brush( QColor( r, g, b, (int) ( alpha * 255 ) ) ); m_painterP->fillRect( 0, 0, width(), height(), brush ); however has explained in

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-22 Thread António Rodrigues Tomé
Hi Alan I think the small change I purpose will do the trick. In no way it will mess up with the normal functionality of the driver but it will allow all qt drivers to be used inside a qt program. I've tested it. I Think Alban Rochel never considered necessary to use the drivers from a qt program

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-22 Thread Alan W. Irwin
On 2018-12-20 13:21-0800 Alan W. Irwin wrote: On 2018-12-20 18:56- António Rodrigues Tomé wrote: Hi Alan I do not completely understand the need of using a mutex in the qt driver however without any change in the actual driver approach it is easy to allow the driver to work well within a

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-22 Thread Alan W. Irwin
On 2018-12-22 17:46- António Rodrigues Tomé wrote: Hi I must confess that I'm completely unable to work with git. As git is a widely used tool it is certainly my problem. After many hours just to be able to perform first instructions in develop file specially because I tried to read a git

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-22 Thread António Rodrigues Tomé
Hi I must confess that I'm completely unable to work with git. As git is a widely used tool it is certainly my problem. After many hours just to be able to perform first instructions in develop file specially because I tried to read a git instruction to do a new branch but always get the info not

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-20 Thread Alan W. Irwin
On 2018-12-20 22:30- António Rodrigues Tomé wrote: Hi Alan I've never used git (I'm still a svn user) but I can give it a try. Hi António: Thanks for your willingness to try git to make it easier to communicate your suggested changes to us. Everything you should need to know about git

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-20 Thread António Rodrigues Tomé
Hi Alan I've never used git (I'm still a svn user) but I can give it a try. cheers, On Thu, Dec 20, 2018 at 9:21 PM Alan W. Irwin wrote: > On 2018-12-20 18:56- António Rodrigues Tomé wrote: > > > Hi Alan > > I do not completely understand the need of using a mutex in the qt driver > >

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-20 Thread Alan W. Irwin
On 2018-12-20 18:56- António Rodrigues Tomé wrote: Hi Alan I do not completely understand the need of using a mutex in the qt driver however without any change in the actual driver approach it is easy to allow the driver to work well within a qt app and also in any other c or c++ program if

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-20 Thread António Rodrigues Tomé
Hi Alan I do not completely understand the need of using a mutex in the qt driver however without any change in the actual driver approach it is easy to allow the driver to work well within a qt app and also in any other c or c++ program if in the file qt.cpp function bool initQtApp( bool isGUI )

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-16 Thread António Rodrigues Tomé
Hi Alan Glad to be of some help. Really that empty string in family name especially when the matchof name is not an exact match could have strange results and could vary from system to system. In order for me to use qt drivers, as all my applications are qt based, I still need different things as

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-16 Thread Alan W. Irwin
On 2018-12-16 10:13- António Rodrigues Tomé wrote: Hi all I found no evidence of fontconfig not being working properly in my system. so I've made a small test instead of setting font family to null string I've set it to a bogus name. f.setFamily( "BOUGUSTRASHFAMILY" ); // no family name,

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-15 Thread António Rodrigues Tomé
Hi Alan thanks for this detailed explanation. The inclusion of helvetica was only a test to make sure it was indeed a font load problem it was not intended to be a definitive solution. One of the first things I checked was that fontconfig was installed. I will dig deeper into this before report

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-15 Thread Alan W. Irwin
On 2018-12-16 00:07- António Rodrigues Tomé wrote: Hi all after trying a long time playing with cmake options trying to see if I could get my qt5 plplot loading suitable f fonts I came to conclude that my distribution in a way acts differently from Alan's. I get very nice results if in the

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-15 Thread Alan W. Irwin
On 2018-12-15 21:38- António Rodrigues Tomé wrote: Hi all, This seems to be a truetype font issue my plots were made without true type support. I noticed the difference between Alan plots and mine were not only in position and orientation but also in fonts used. I have a lot of true types

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-15 Thread António Rodrigues Tomé
Hi all, This seems to be a truetype font issue my plots were made without true type support. I noticed the difference between Alan plots and mine were not only in position and orientation but also in fonts used. I have a lot of true types fonts installed but for strange reason none is selected.

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-15 Thread António Rodrigues Tomé
Hi Alan this is indeed very strange. here the result of uname -a 4.12.14-lp150.12.28-default #1 SMP Mon Dec 3 16:46:15 UTC 2018 (b91289f) x86_64 x86_64 x86_64 GNU/Linux My distribution is opensuse leap 15.0 and my qt is 5.12.0 (although i had exactly the same result with 5.11 as i've tested it a

Re: [Plplot-devel] Qt5 support, strange driver output

2018-12-14 Thread Alan W. Irwin
On 2018-12-12 15:24- António Rodrigues Tomé wrote: Hi Alan, now that 5.14 is out I would like to be more useful in solving the qt5 driver problem. However I do not complete understand the driver system to be of big help.However for me I found a work arround that seems to work quite well. I