If you say a way to extract a QStringList words from class to insert on QCompleter?
or interact from assistant search on a model?
 Advanced user
					
					
						Advanced user
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
       
    
    
       
    
    
    
    
   QCompleter extract from Assistant
 QCompleter extract from Assistant
		If you say a way to extract a QStringList words from class to insert on QCompleter?
or interact from assistant search on a model?
 
    
    
       
    
    
       
    
    
       
    
    
    
    
   
    
    
       
    
    
    
       
    
    
       
    
   Re: QCompleter extract from Assistant
 Re: QCompleter extract from Assistant
		Could you rephrase your question? I have difficulties understanding what your question means.
 Advanced user
					
					
						Advanced user
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
       
    
    
       
    
    
    
    
   Re: QCompleter extract from Assistant
 Re: QCompleter extract from Assistant
		My question is only how to extract QT4 class name on a qstringlist to add on a QCompleter?
Or cast direct from assistant... is here a way?
Qt Code:
{
highlighter = new Highlighter(document()); /* Highlighter *highlighter; */
completerbase->setModel(modelFromFile(":img/qtclass.txt"));
completerbase->setCaseSensitivity(Qt::CaseInsensitive);
completerbase->setWrapAround(false);
setCompleter(completerbase);
}To copy to clipboard, switch view to plain text mode
 
    
    
       
    
    
       
    
    
       
    
    
    
    
   
    
    
       
    
    
    
       
    
    
       
    
   Re: QCompleter extract from Assistant
 Re: QCompleter extract from Assistant
		Extract from assistant? Assistant saves its index in a file that's probably in your $HOME/.assistant/. I don't know the format, but it should be easy to retrieve it by looking at assistant source code.
 Advanced user
					
					
						Advanced user
					
					
                                        
					
						
							
								 
							
						
					
					
						 
    
    
    
    
    
    
   
    
    
       
    
    
       
    
    
    
    
   Re: QCompleter extract from Assistant
 Re: QCompleter extract from Assistant
		
I tidy to xml the file http://doc.trolltech.com/4.3/functions.html
Qt Code:
QString errorStr, obname;
int errorLine, errorColumn;
QDomDocument doc;
if (!doc.setContent(&f,false, &errorStr, &errorLine, &errorColumn)) {
return 0;
}
int sumfunction = 0;
while (!listing.isNull()) {
obname = pagelink.firstChildElement("span").text();
if (obname !="") {
sumfunction++;
std::cout << sumfunction << ") qtfu: ->" << qPrintable(obname) << std::endl;
}
listing = listing.nextSiblingElement("li");
}
/* summfunction qt4 rc1 6028.. */To copy to clipboard, switch view to plain text mode
Bookmarks