html - QTextBrowser SetHtml gives blank screen randomly -


i have developed application in need generate slip containing information entered user. show slip, created new widget screen on used qtextbrowser display information.

i have used qtextbrowser->sethtml display information, format information etc.the information includes "the hard coded titles" "information stored in database sqlite".

its running fine on system (pc) when uploaded on friends system (pc), got blank slip. happens few slips starts displaying slip.

here's function :-

void printrecieptinfo::createhtml() {     htmlstring.clear();      const qstringlist childgroup = settings->childgroups();      if (childgroup.length() < maxgroupinrecieptsettings){         return;     }      initrecieptinfo();      htmlstring = "<table align='center' border='yes' width='450'>";      if (ritem[1].status){         if ((ritem[0].status) && (ritem[0].text != "")){             htmlstring.append( "<tr><th colspan = '5'><font size='2'><img src='" +     ritem[0].text + "'>" + ritem[1].text + "</th></tr>");         }         else {             htmlstring.append( "<tr><th colspan = '5'><font size='1'>" + ritem[1].text + "</th></tr>");         }     }      if (ritem[2].status){         htmlstring.append("<tr><th colspan = '5'><font size='1'>" + ritem[2].text + "</th></tr>");     }      if (ritem[3].status){         htmlstring.append("<tr><th colspan = '5'><font size='1'>" + ritem[3].text + "</th></tr>");     }      if (ritem[4].status){        htmlstring.append("<tr><th colspan = '5'><font size='1'>" + ritem[4].text + "</th></tr>");     }      htmlstring.append("<tr><td colspan='5'><hr></td></tr>");      (int = 5 ; < maxmember; i++){          if (ritem[i].status){             htmlstring.append("<tr><td width='80'>" + ritem[i].title + "</td><td width='80'>" + ritem[i].text + "</td><td width='50'></td>");              int tempindex = i+1;               while(!ritem[tempindex].status){                 tempindex++;                 if (tempindex > maxmember){                     break;                 }             }             if (tempindex < maxmember){                 htmlstring.append("<td width='80'>" + ritem[tempindex].title + "</td><td width='80'>" + ritem[tempindex].text + "</td>");                 htmlstring.append("</tr>");             }              = tempindex;         }     }      htmlstring.append("<tr><th colspan='5'><hr></th></tr>");     htmlstring.append("<tr><th></th></tr>");     htmlstring.append("<tr><td></td><td></td><td></td><td></td><td align='right'>operator signature</td></tr>");      htmlstring.append("</table>");     ui->printslip_textbrowser->sethtml(htmlstring);  } 

can guide me solution issue ??

are using windows? if yes, sounds need copy qtdir/plugins/imageformats directory computer computer of friend.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -