Questions tagged as 'qt'

1
answer

Changing the ownership of a QML object by C ++

I'm trying to make a change to a property of a (Rectangle) object that was instantiated in QML, but I'm not able to do it because the findChild strong null . I'm following the following documentation: - Integrating QML and C ++
asked by 04.11.2016 / 19:04
1
answer

Qt5 Deploy on Linux - No installation

I'm developing a solution in QtCreator Qt version 5.4.2. Well, I have the following problem: When I run on my machine and on any Ubuntu Vivid (15.04) it works. But when I try to run in Ubuntu 14.04 LTS gives error. There are ways to make this ap...
asked by 17.06.2015 / 03:32
1
answer

How to customize "Notification Web API" in Qt?

I'm creating a simple browser using QtWebkit and added it the "support" for Notification Web API using QWebPage::setFeaturePermission . An example: function notifyMe() { if (Notification.permission === "granted") {...
asked by 03.03.2015 / 18:46
1
answer

How to deal with screen orientation in QML?

I develop normally focused on vertical orientation, but when I turn the device screen to horizontal, the elements are resized unwanted, leaving some smaller than they really should be. For example: Rectangle { id: foo width: parent....
asked by 07.02.2014 / 01:56
1
answer

Filter month in QSqlTableModel

How do I filter the month in QSqlTableModel ? I'm doing this: model = new QSqlTableModel(this); model->setTable("tabela"); // db sqlite model->setFilter("strftime('%m', campo_dataCadastro)='04'");//db YYYY/MM/DD HH:MM:SS model-&...
asked by 23.04.2014 / 17:26
0
answers

QT versus GTK + difference in resources [closed]

Before we start with some considerations: The object of this topic is to search for facts / objects, therefore assumptions / kicks / flames will not be accepted as answers. All responses should take into account a GNU / Linux environment w...
asked by 28.11.2014 / 20:02
1
answer

Qt SQL - ERROR (42601): syntax error at or near

I'm currently developing a program to help manage a barracks in my city, I'm using Qt to create the graphical interface and other necessary libraries like database manipulation, for the server I'm using postgres , when trying to cre...
asked by 31.08.2018 / 13:44
1
answer

Is it possible to make a "text for voice" with Pyqt?

I'm learning to mess with Pyqt. I'm putting together a simple application, where there will be a voice notification when a new request is available. I would like my application written in Pyqt4 to "transform" a text into a voice. I was abl...
asked by 27.10.2016 / 20:08
1
answer

Button executing shell script

By clicking the Save button, I wanted the contents of the text box (which I typed or pasted into plain text ) to be inserted at the end of a certain text file that exists in my home. This process I currently do with the following script in t...
asked by 19.09.2014 / 00:08
1
answer

Keyboard arrows in QT

When we want to use the keyboard arrows in C ++, we use the Ncurses or conio.h libraries, depending on the operating system. But is there a way to do this using the QT libraries?     
asked by 08.05.2018 / 22:09