Please nominate your Qt Champions for 2021!

How to fix the blu rect bug/glitch on the Licence Agreement Page of my installer ? (MacOSX)

  • Hi all,

    I have this gfx bug (a glitch) on my installer for Mac. I used the last QtFrameworkInstaller 2.0.5-1 but I have the same bug on the 2.0.3.

    Does someone can help me?

    Rem 1: it looks like a selection rect cuz when I click on the radio button or on the text zone , the blu rect disappears
    Rem 2: I dont customize the UI
    Rem 3: The bug is not present on Windows

    This is the screenshot with the bug :
    alt text

    This is my script :

    function Component()
    	installer.setDefaultPageVisible(QInstaller.Introduction, false); // needed to avoid double introduction page
    	installer.setDefaultPageVisible(QInstaller.TargetDirectory, false);
    	installer.setDefaultPageVisible(QInstaller.StartMenuSelection, false);
    	installer.setDefaultPageVisible(QInstaller.ComponentSelection, false);
    	//installer.setDefaultPageVisible(QInstaller.ReadyForInstallation, false); // commented cuz we have a non-informative error (E_FAIL) when the disk is already full
    Component.prototype.createOperationsForArchive = function(archive)
    	if (installer.value("os") === "mac")
    		component.addOperation("Extract", archive, "@ApplicationsDir@");
    		component.addOperation("Extract", archive, "@TargetDir@");
    Component.prototype.createOperations = function()
        try {
            // call the base create operations function
        } catch (e) {
    	if (installer.value("os") === "win")
    		component.addOperation("CreateShortcut", "@TargetDir@/bin/game-launcher.exe", "@DesktopDir@/mygame.lnk");
    	if (installer.value("os") === "x11")
    		component.addOperation("CreateDesktopEntry", "/usr/share/applications/YourApp.desktop", "Version=1.0\nType=Application\nTerminal=false\nExec=@TargetDir@/\nName=YourApp_name\nIcon=@TargetDir@YourApp_icon.png\nName[en_US]=YourApp_name");
    		component.addElevatedOperation("Copy", "/usr/share/applications/YourApp.desktop", "@HomeDir@/Desktop/YourApp.desktop");
    Component.prototype.isDefault = function()
        // select the component by default
        return true;

  • Lifetime Qt Champion


    That looks like a bug. You should check the bug report system to see if it's something known. If not, please consider opening a new report providing a minimal compilable example that shows that behavior.

Log in to reply