Got the app hiding in the system tray, though icon isn't working.
When you hit the close button on the window, it hides in the system tray, or when you hit File>Hide or Ctrl+H while the application has focus. I have some testing code in to see why the icon isn't being set, but still can't figure it out. The icon is definitely loading, it's just when I set it to the icon it's no visible. I'm even not getting console output saying no icon is being set.
This commit is contained in:
		
							parent
							
								
									003c8a1157
								
							
						
					
					
						commit
						c7914480e0
					
				
					 6 changed files with 124 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -18,38 +18,5 @@ HEADERS  += ../src/mainwindow.h
 | 
			
		|||
 | 
			
		||||
FORMS    += ../src/mainwindow.ui
 | 
			
		||||
 | 
			
		||||
OTHER_FILES += \
 | 
			
		||||
    res/arrow_fat_down.gif \
 | 
			
		||||
    res/arrow_fat_up.gif \
 | 
			
		||||
    res/arrow_mini_down.gif \
 | 
			
		||||
    res/arrow_mini_up.gif \
 | 
			
		||||
    res/block.gif \
 | 
			
		||||
    res/cross.gif \
 | 
			
		||||
    res/drop_box.gif \
 | 
			
		||||
    res/folder.gif \
 | 
			
		||||
    res/plus.gif \
 | 
			
		||||
    res/save.gif \
 | 
			
		||||
    res/script.gif \
 | 
			
		||||
    res/trash.gif \
 | 
			
		||||
    res/warning.gif \
 | 
			
		||||
    res/play.png \
 | 
			
		||||
    res/settings.png \
 | 
			
		||||
    res/stock_3d-texture-and-shading_16x16.png \
 | 
			
		||||
    res/stock_3d-texture-and-shading_32x32.png \
 | 
			
		||||
    res/stock_3d-texture-and-shading_48x48.png \
 | 
			
		||||
    res/stock_3d-texture-and-shading_128x128.png \
 | 
			
		||||
    res/stock_3d-texture-and-shading_256x256.png \
 | 
			
		||||
    res/stock_3d-texture-spherical_16x16.png \
 | 
			
		||||
    res/stock_3d-texture-spherical_32x32.png \
 | 
			
		||||
    res/stock_3d-texture-spherical_48x48.png \
 | 
			
		||||
    res/stock_3d-texture-spherical_128x128.png \
 | 
			
		||||
    res/stock_3d-texture-spherical_256x256.png \
 | 
			
		||||
    res/stop.png \
 | 
			
		||||
    res/stock_3d-texture-and-shading_16x16.ico \
 | 
			
		||||
    res/stock_3d-texture-and-shading_32x32.ico \
 | 
			
		||||
    res/stock_3d-texture-and-shading_128x128.ico \
 | 
			
		||||
    res/stock_3d-texture-and-shading_256x256.ico \
 | 
			
		||||
    res/stock_3d-texture-spherical_16x16.ico \
 | 
			
		||||
    res/stock_3d-texture-spherical_32x32.ico \
 | 
			
		||||
    res/stock_3d-texture-spherical_128x128.ico \
 | 
			
		||||
    res/stock_3d-texture-spherical_256x256.ico
 | 
			
		||||
RESOURCES += \
 | 
			
		||||
    res.qrc
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										22
									
								
								code/build/res.qrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								code/build/res.qrc
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,22 @@
 | 
			
		|||
<RCC>
 | 
			
		||||
    <qresource prefix="/images">
 | 
			
		||||
        <file>res/arrow_fat_down.gif</file>
 | 
			
		||||
        <file>res/arrow_fat_up.gif</file>
 | 
			
		||||
        <file>res/arrow_mini_down.gif</file>
 | 
			
		||||
        <file>res/arrow_mini_up.gif</file>
 | 
			
		||||
        <file>res/block.gif</file>
 | 
			
		||||
        <file>res/cross.gif</file>
 | 
			
		||||
        <file>res/drop_box.gif</file>
 | 
			
		||||
        <file>res/folder.gif</file>
 | 
			
		||||
        <file>res/play.png</file>
 | 
			
		||||
        <file>res/plus.gif</file>
 | 
			
		||||
        <file>res/save.gif</file>
 | 
			
		||||
        <file>res/script.gif</file>
 | 
			
		||||
        <file>res/settings.png</file>
 | 
			
		||||
        <file>res/stop.png</file>
 | 
			
		||||
        <file>res/trash.gif</file>
 | 
			
		||||
        <file>res/warning.gif</file>
 | 
			
		||||
        <file>res/stock_3d-texture-and-shading_16x16.png</file>
 | 
			
		||||
        <file>res/stock_3d-texture-spherical_16x16.png</file>
 | 
			
		||||
    </qresource>
 | 
			
		||||
</RCC>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue