Posts by Hy-brazil • 868 points
31 posts
-
2
votes3
answers401
viewsQ: Materializecss: image without margin
I have an image inside a div. Down she gets a margin. I tried with Firebug to look at the code of div and img, but I found nothing stated with margin and padding. <div class="row"> <div…
-
7
votes4
answers1015
viewsQ: Problem with pennies when using the Biginteger type
I’m having a problem adding up pennies. Informo 1200, returns 1.200,00 instead of 12,00. Code: formatar_data(1200); private int formatar_data(int inteiro){ BigInteger valor = new…
-
5
votes1
answer354
viewsQ: Qt calling method in another class
I’m calling a method another class after entering data. But it is returning an Sqlite error: QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries…
-
3
votes1
answer114
views -
0
votes1
answer148
viewsA: List data from two tables in the tableView
Solved: The QSqlRelationTableModel It has only one column. To solve the problem, I had to use the QSqlQueryModel with LEFT JOIN.
-
1
votes1
answer148
viewsQ: List data from two tables in the tableView
What do I do to list two table data on tableView? Sqlite Database(Example): tb_venda tb_produto tb_valor tb_cliente_id (Id do cliente "tb_cliente") tb_cliente tb_cliente_id (id primary key) tb_nome…
-
0
votes2
answers1540
viewsA: How to show date and time in php
Has the function date() php native. More information: http://www.php.net/manual/en/book.datetime.php To register id you can use the PRIMARY KEY AUTO INCREMENT More information:…
-
3
votes5
answers17141
viewsA: Ignore CSS on a particular page snippet
In your case, you can define the CSS directly in your input instead of using the rule for everyone input. CSS option: <style type="text/css"> <!-- #formulario .input_css { background-color:…
-
1
votes1
answer70
viewsA: Filter month on Qsqltablemodel
Solved, The problem was the date format stored on sqlite. Converts the date to YYYY-MM-DD HH:MM:SS and ran the filter.
-
3
votes1
answer70
viewsQ: Filter month on Qsqltablemodel
How do I filter the month on QSqlTableModel? I’m doing like this: model = new QSqlTableModel(this); model->setTable("tabela"); // db sqlite model->setFilter("strftime('%m',…
-
1
votes2
answers58434
viewsA: Background image, using css
Try it this way: <div style="background-image:url(images/html.jpg)">Conteúdo da div</div> or #tudo{ background-image:url(images/html.jpg); width:100%; height:992px; } <div…
-
1
votes2
answers287
views -
0
votes2
answers123
viewsA: Highlight a time with PHP that is stored in the database
Hello. from what I understand. Do you want to highlight your schedule with a different color? If yes. You can add a tag html, example: <red> or a style color in css echo…
-
0
votes2
answers369
viewsA: Show php data inside tabs
Hello. The best pagination option is with data set $inicio and $limite making just one query of desirable data SELECT lista FROM tablet LIMIT $inicio,$limite. And yet you win with execution…
-
1
votes2
answers287
views -
4
votes2
answers1796
viewsA: Zoom in with jQuery
You can develop with css: In the images you can use the Cover: background: url(imagem_cover.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover;…
-
0
votes1
answer31
viewsA: sqlcipher compile plugin in windows
Solved: I downloaded the MinGW get with MinGw-developer-tookit.
-
0
votes1
answer31
viewsQ: sqlcipher compile plugin in windows
How do I compile the plugin in windows? I’m doing like this: Git Clone sqlcipher - C:\sqlcipher installed MINGW32 - C:\MINGW32 installed msys - C:\MINGW32\msys\1.0 installed tcltk-8.4.1-1-…
-
0
votes1
answer63
viewsQ: Update a Combobox after opening Qdialog
How do I update a Combobox after opening a Qdialog? The code below does not update if you have an update in db. I have to close the application and open to show the new data: Dialog::Dialog(){…
-
2
votes1
answer80
viewsQ: Background and icon on tableView
I wonder, how do I add in a tableView to the property of background and icone? I can already add the Background now is missing the icon. Code: class tableView : public QSqlTableModel { Q_OBJECT…
-
2
votes1
answer91
viewsA: User-friendly URL with Boilerplate
You have activated mod_rewrite. c? If so. In the site’s folder(root), creates a file called: .htaccess: Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f…
-
3
votes1
answer171
viewsQ: Print Tableview Data with Qprinter
How can I get the data from a TableView add to layout html and print with QPrinter? Code: QString html; html = "<div>Titulo</div>" "<div>etc</div>"…
-
1
votes1
answer105
viewsQ: Integer to price conversion using Qlocate
How can I use QLocate to convert integer into standard Brazilian price form (without rounding up the figures)? Code: QString n1 = "1.020,50"; QString n2 = "10,33"; int valor1 =…
-
4
votes3
answers956
viewsA: Auto completing input with address
Have you used jquery? website: jquery.com Furlough: https://jquery.org/license/ An example of Autocomplete. <!doctype html> <html lang="en"> <head> <meta charset="utf-8">…
-
12
votes2
answers4009
viewsQ: Format decimal with comma and thousand with dot
How can I format a float for the Brazilian value format(price)? Example: in php number_format($float,2,',','.') separates decimal with comma and unit of thousand with dot.…
-
1
votes1
answer69
viewsQ: Update a Tableview
How can I update a Tableview after closing a Dialog? Example: principal.ccp abre conexão com banco de dados principal::principal(){ //..etc..// model->setTable("nomeTabela");…
-
1
votes2
answers468
viewsA: update in 2 tables with calculation and field update keeping the previous
Your code is vulnerable to SQL INJECTION. And you better already learn the PDO. Less headache in the future :) About your code. Your Select2 was about writing the first. by having the same name.…
-
4
votes1
answer1144
viewsQ: Resize components when enlarging window
How can I resize the components inside the QWidget when enlarging the window? Example of how it looks:…
-
5
votes3
answers457
viewsQ: Lock the window zoom
How can I block the window rise QDialog and QWidget? For example, in the Skype login window you cannot enlarge the window.
-
3
votes1
answer4156
viewsQ: Command to exit the scope of a function (`break`equivalent)
How can I create an algorithm in C++ (using Qt) to abort code processing? I have to validate many different entries and I don’t want to keep creating if else if else. The code is ugly. Example, but…
-
0
votes1
answer196
viewsQ: How to validate the price in Qt?
I would like to know how to validate the price in Qt, as follows: Accepted examples: 10,00 / 100,00 / 1.000,00 = true My code, (but it’s validating true: 10 / 100) bool ok;…