Quick question I have a QSS file that i use to set the style and this works great. However I seem to be getting a weird problem.

When I launch the program I tell it to start in fullscreen but instead the program launches as a small window the code is

Qt Code:
  1. GUIForm lGUIForm(aFullscreen, fOwner,aConfiguration);
  2.  
  3. if (aFullscreen)
  4. {
  5. lGUIForm.showMaximized();
  6. }
  7. else
  8. {
  9. lGUIForm.show();
  10. }
To copy to clipboard, switch view to plain text mode 
Below is my stylesheet

Qt Code:
  1. {
  2. background-color: #3A3A53;
  3. font-family: "DejaVu Sans";
  4. }
  5.  
  6. #MAINFRM
  7. {
  8. background-color: #3A3A53;
  9. font-family: "DejaVu Sans";
  10. }
  11.  
  12. #HEADER
  13. {
  14. background-color: rgb(12, 12, 40);
  15. color: rgb(255, 255, 255);
  16. font-family: "DejaVu Sans";
  17. }
  18.  
  19. #MENUBAR
  20. {
  21. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #c2c2d4);
  22. }
  23.  
  24. #FILTERBAR
  25. {
  26. background-color: rgb(58, 58, 83);
  27. }
  28.  
  29. #VIDEOFRM
  30. {
  31. background-color: rgb(0, 0, 0);
  32. }
  33.  
  34. #ALARMBAR
  35. {
  36. background-color: rgb(35, 35, 61);
  37. color: rgb(255, 255, 255);
  38. }
  39.  
  40.  
  41. #MSGBOX
  42. {
  43. background-color: #141428;
  44. font-family: "DejaVu Sans";
  45. color: #D9D9EA;
  46. border: 0px solid #9595A9;
  47. padding: 0 10px 0 10px;
  48. }
  49.  
  50. #IndicationPanel
  51. {
  52. font-family: "DejaVu Sans" ;
  53. background-color: #3C3C79 ;
  54. border-color: #67677E ;
  55. color: #67677E ;
  56. border-style: solid ;
  57. border-width: 2px ;
  58. border-radius: 4px ;
  59. }
  60.  
  61. {
  62. background-color: #3A3A53;
  63. font-family: "DejaVu Sans";
  64. color: #D9D9EA;
  65. }
  66.  
  67. QPushButton:hover:pressed{
  68. font-family: "DejaVu Sans";
  69. background-color: #3F3FB3 ;
  70. border-color: #F0F0FF ;
  71. color: #F0F0FF ;
  72. border-style: solid;
  73. border-width: 2px;
  74. border-radius: 4px;
  75. }
  76. QPushButton:hover:!pressed {
  77. font-family: "DejaVu Sans";
  78. background-color: #D9D9EA ;
  79. border-color: #000000 ;
  80. color: #3A3A53 ;
  81. border-style: solid;
  82. border-width: 2px;
  83. border-radius: 4px;
  84. }
  85. QPushButton:!hover {
  86. font-family: "DejaVu Sans";
  87. background-color: #D9D9EA ;
  88. border-color: #000000 ;
  89. color: #3A3A3A ;
  90. border-style: solid;
  91. border-width: 2px;
  92. border-radius: 4px;
  93. }
  94. QPushButton:disabled{
  95. background-color: #9595A9;
  96. border-color: #67677E;
  97. color: #67677E;
  98. font-family: "DejaVu Sans";
  99. border-style: solid;
  100. }
  101. QPushButton:disabled:pressed{
  102. background-color: #3C3C79;
  103. border-color: #67677E;
  104. color: #67677E;
  105. font-family: "DejaVu Sans";
  106. border-style: solid;
  107. }
To copy to clipboard, switch view to plain text mode 
The weird thing is I know it’s to do with the stylesheet as if i stop it from being loaded the program launches in fullscreen. Has anyone seen this or have any solution how to solve this that would be great.