Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to fix the blu rect bug/glitch on the Licence Agreement Page of my installer ? (MacOSX)

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

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 536 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    julia_f
    wrote on last edited by
    #1

    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@");
    	}
    	else
    	{
    		component.addOperation("Extract", archive, "@TargetDir@");
    	}
    }
    
    Component.prototype.createOperations = function()
    {
        try {
            // call the base create operations function
            component.createOperations();
        } catch (e) {
            console.log(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@/YourApp.sh\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;
    }
    
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved