my app showing empty select field first entry. have read other solution given , tried still not working. my controller code is: .controller('usercreatecontroller', function(user,profile,auth) { alert("hello"); var vm = this; vm.type = 'create'; profile.all() //this service fetch profiles shown in select field .success(function(data){ vm.profile = data; }); vm.userdata.profile = vm.profile[0]; //here have set default value select field and html page is: <label class="col-sm-2 control-label">profile</label> <div class="col-sm-8"> <select ng-model="user.userdata.profile" ng-options="person._id person.profilename person in user.profile"> </select> </div> hierarchy of vm.profile { "_id": 46, "profile": objectid("5516498e95b84548156db754"), "isactive": true, "password": "$2...
i know it's possible change color of rubber band rectangle way: qrubberband rubberband = new qrubberband(qrubberband::rectangle, this); qpalette pal; pal.setbrush(qpalette::highlight, qbrush(qt::white)); rubberband->setpalette(pal); but here way achieve rubber band, rendered qgraphicsview when rubberbanddrag mode active? or in "global scope"? i'm sorry wrote question, i've looked solution long time, , nothing. few minutes after asking, found solution setting stylesheet. i'm sharing it. just go designer of qt creator, click on canvas (qgraphicsview). in "qwidget" part find "stylesheet", edit it, , put like: selection-background-color: rgba(255, 255, 255, 128); that's :-). thanks.
i need able encrypt , decrypt message using polybius square. know how works on paper don't know start when turning program. planning use hash map told thats bad way go , there better approaches this...but don't know approaches be. i've been given code me lecture workshop on project don't understand it. i'll paste below , if explain appreciate it! i've been focusing on c lot past while bit rusty when comes java. char [][] poly = { {",'a','b','d'..... {'a','p','h','q'} } thats double array i'll using sort polybius square right? for(int row = 0; row < poly.length; row++) { } for(int col = 0; col < poly[row].length; col++) { } // c char i'm looking if(poly[row][col] == c){ } this used navigating array , finding chars want? // how break line down character string[] words = line.split(" "); for(int i=0; < words.length; i++){ string word = words[i]; ...
Comments
Post a Comment