Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

c++ - open desktop using QText Browser -


right displaying /home/binary/ in qtext browser. want open folder clicking on text. how ? in advance

here sample code. display result s

bool mainwindow::displayresult(multimap<string, 

string> &resultmap, string &filepath) { multimap::iterator iter; bool filestatus = false; int nooflocfound = 0, forappending = 0; qstring no;

    nooflocfound = resultmap.size();      if ( nooflocfound != 0 )         ui->textbrowser->append( "<i>file found @ <b>" + no.setnum ( 

nooflocfound ) + " locations");

    ( forappending = 0,iter = resultmap.begin(); iter != 

resultmap.end(); iter++, forappending++ ) { string file = iter->first; string dir = iter->second;

        if ( forappending == 0)             filepath.append(dir);         else             filepath.append(","+dir);          qstring qdir = qstring::fromstdstring(dir);          cout << "display";          ui->textbrowser->append( qdir );         filestatus = true;      }      if ( filestatus == false )     {         ui->textbrowser->append("file not 

found"); return false; }

    return true; } 

by "open folder", mean, open file dialog user select inside of given directory?

if so, want connect qtextbrowser's clicked signal slot looked like:

// connect events, in mywindow constructor, or whereever... connect(textbrowser, signal(mousepressevent(qmouseevent*)), this, slot(openfiledialog(qmouseevent*)));  void mywindow::openfiledialog(qmouseevent* event) {     q_unused(event);      qstringlist files = qfiledialog::getopenfilenames(this, "select file...",         textbrowser.plaintext());      // files here... } 

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -