[Gambas-user] [gambas-user] Possible bug in gb.gui
Paul Horechuk
phorechuk at ...626...
Sun Dec 14 21:10:06 CET 2014
OK, then let's rephrase that slightly. The gb.gtk component does not
behave the same as the gb.qt4 component. If I disable the capability to
autodetect the environment and force the use of gb.qt4, then everything
works. Hence, the problem is within gb.gtk. As part of setting the taget
environment then I have to install the base qt4 libraries as a minimum,
or install perhaps a full KDE desktop.
The attached file is a source archive. Don't worry about the database
option. Fill in the /Issued To/ field, the /Job #/, the two dates, and
set the count to something like 3 or 5 so that you get an odd number of
labels. You will need external access to qrencode and phpcli. When the
fields are being filled, the on-screen QRcode will update. When
complete, click the OK button and either Preview or Print. Preview is
recommended. Open a file manager and navigate to the QRcard directory
and open QRpicture.png. Card #3 is correct and the others have valid
QRcodes, but bad text.
As mentioned, it works under several desktop environments with gb.qt4,
but using gb.gui and allowing the auto selection of gb.gtk fails.
There is nothing fancy in the components, except for gb.qt4. I do use
gb.db, gb.mysql, and gb.odbc, but these should not be an issue without
the /Use Database/ option selected.
On 14-12-13 07:16 PM, Benoît Minisini wrote:
> Le 14/12/2014 01:01, Paul Horechuk a écrit :
>> I finally nailed down a bug in my environment.
>>
>> During development using Ubuntu 14.04 with the KDE/Plasma desktop and
>> Gambas 3.5.4 up to 3.6.2, everything works. Problems were encountered
>> when I installed a source archive on Fedora 20. This Fedora was with the
>> default Gnome desktop. Gambas was using the gb.gui component, which
>> should have produced the same results for gtk or qt4. It doesn't.
>>
>> After testing with Fedora 21 default and Fedora 21 KDE spin, I
>> discovered that the KDE spin worked. I installed MATE on the KDE spin
>> and was able to select either on login. Now I had both sets of libraries.
>>
>> I have determined that gb.gui is NOT doing its job. By disabling gb.gui
>> and using gb.qt4, my program works under gnome and KDE.
>>
>> The problem manifests in the Paint.Text as it produces the attached
>> picture with gb.gui.
>>
>> This has been confirmed on other releases and desktops as well.
>>
> gb.gui does nothing by itself: it just loads gb.qt4 if your desktop is
> KDE4 (i.e. the KDE_FULL_SESSION environmental variable is defined, and
> the KDE_SESSION_VERSION environmental variable is "4"), and gb.gtk in
> all other cases.
>
> Please provide the contents of the IDE system information dialog, the
> last version of your project and how to reproduce the bug.
>
> Regards,
>
--
Think Free ...
Use Open Source Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QRCards-0.5.2.tar.gz
Type: application/gzip
Size: 101230 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20141214/68881267/attachment.gz>
More information about the User
mailing list