Posts by andref • 265 points
7 posts
-
0
votes1
answer536
viewsA: Uni-directional Onetomany mapping with 3 classes using 1 single class
If you don’t want auxiliary tables (Join table), it is necessary to use inheritance and register the foreign key in the table Endereco. The superclass would be something like: @Entity…
-
0
votes1
answer145
viewsA: How to mount this ng-repeat?
The variable r cannot "leave" the <li> where it was set (unless you use ng-repeat-start and ng-repeat-end, but that’s not the case here). It is then necessary to iterate twice by placing a…
-
1
votes1
answer312
viewsA: Validate a Qlineedit to only take Double
You need to define the locale of QDoubleValidator: auto validator = new QDoubleValidator(0, 1000.00, 2, lineEdit); validator->setLocale(QLocale("pt_BR")); lineEdit->setValidator(validator);…
-
4
votes3
answers999
viewsA: Creating the Snippet itself in the Atom
We’re missing a : after the name of the snippet: '.source.php': 'Controller text': # Aqui. 'prefix': 'lco' 'body': 'my name is $1'…
-
2
votes2
answers1318
viewsA: Calling C++ from Javascript?
Before leaving for Nacl, which is exclusive to Chrome, try using Emscripten, an LLVM-based compiler that transforms C and C++ code into asm.js. Asm.js is a subset of Javascript that modern Engins…
-
1
votes1
answer2578
viewsA: How to request client IIS 7.5 ssl certificate
The right option is even Require. Otherwise, the browser will not ask the user to select a certificate. However, it is not possible to intercept certificate validation in ASP.Net. You need to create…
-
2
votes1
answer171
viewsA: Print Tableview Data with Qprinter
You need to get the model where the QTableView search the data, iterate the items and extract their content using the method QAbstractItemModel::data: html += "<table>"; QAbstractItemModel*…