title: QList: Out of memory
body: <p>I have a graphical application written in Qt for embedded linux. Part of this application is to update a display screen every 250 ms. However, after about 8-10 hours the application crashes with a "QList: Out of memory" error. I've isolated the function and the lines (in a sense) where it happens, but I have no idea why it happens since I'm not using QList. The only active lines of code in this function are at the end of this question.</p>
  
  <p>I realize that QList doesn't ever 'shrink' the memory it uses to hold items, but I'm not using QList anywhere in my code. I'm only calling 'setStyleSheet' to set various fonts and properties on ui widgets (labels, text fields, etc) There's more code, but its all commented out so I'm assuming it has something to do with setStyleSheet. Does anyone know why this is happening? If so, do you know of a way around this? I'm using Q.t. 4.3 btw (due to it being specifically loaded on the embedded system I'm using). </p>
  
  <p>Thanks a lot for your time.</p>
  
  <pre><code>if(twc_rx){
          ui-&gt;label_Rx-&gt;setStyleSheet("QLabel { background-color: lime; font: bold 16px 'Arial' }");
    }else if(!twc_rx){
      ui-&gt;label_Rx-&gt;setStyleSheet("QLabel { background-color: grey; font: bold 16px 'Arial' }");
  
    }//line 561 to 684
    if(twc_tx){
     ui-&gt;label_Tx-&gt;setStyleSheet("QLabel { background-color: lime; font: bold 16px 'Arial' }");
    }else{
     ui-&gt;label_Tx-&gt;setStyleSheet("QLabel { background-color: grey; font: bold 16px 'Arial' }");
    }if(ats_stat){
         ui-&gt;label_ATS-&gt;setStyleSheet("QLabel { background-color: lime; border-radius: 10; font: bold 16px 'Arial'}");
    }else{
         ui-&gt;label_ATS-&gt;setStyleSheet("QLabel { background-color: red; border-radius: 10; font: bold 16px 'Arial'}");
    }
    if(atp_stat){
         ui-&gt;label_atp2-&gt;setStyleSheet("QLabel { background-color: lime; border-radius: 10; font: bold 16px 'Arial'}");
    }else{
         ui-&gt;label_atp2-&gt;setStyleSheet("QLabel { background-color: red; border-radius: 10; font: bold 16px 'Arial'}");
    }
    if(ato_stat){
         ui-&gt;label_ATO-&gt;setStyleSheet("QLabel { background-color: lime; border-radius: 10; font: bold 16px 'Arial'}");
  
    }else{
         ui-&gt;label_ATO-&gt;setStyleSheet("QLabel { background-color: red; border-radius: 10; font: bold 16px 'Arial'}");
    }
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I should mention that these lines are being executed every 250 ms based on an input message from another subsystem. I've already went down that road and its a dead end. This is the error code.</p>