Questions tagged as 'qt'

2
answers

How to get the operating system time in nanoseconds or milliseconds using Qt Creator?

How can I get system time in nanoseconds or milliseconds in C++ using Qt Creator ? For example, in% use% use: long tempoInicial = System.nanoTime(); treinaRNAEpocas(10000); long tempoFinal = System.nanoTime(); long tempoDecorri...
asked by 20.03.2015 / 05:46
1
answer

Is it possible to determine the hardware address of the router?

I'm trying to get the hardware address of another device (actually from directly connected equipment such as a modem / router) on the same network, I was able to do this: foreach(QNetworkInterface netInterface, QNetworkInterface::allInterfaces...
asked by 22.10.2016 / 18:18
1
answer

What is the difference between the qApp quit and exit methods?

I'm testing the example Getting Started Programming with Qt Widgets and found a call from a method to exit application: void Notepad::on_quitButton_clicked() { qApp->quit(); } I took a look at the other methods and found one that a...
asked by 03.06.2015 / 17:45
1
answer

QCustomPlot how to resize chart?

I'm trying to do a repeating histogram of 255 events, I do not know how many times this event can occur! I have an array of 255 elements, already with the amount of repetitions of the events and I want to show this in the graph using Q...
asked by 25.05.2015 / 20:23
1
answer

How to call a Python script in a C ++ code in Qt creator?

How do I call a Python script in a C ++ code in Qt creator?     
asked by 11.02.2015 / 18:18
1
answer

Return Qt during release

When I compile my project as debug , it works normally, but when I try to compile in release the following message appears in compile Output:    cc1plus: error: argument to '-O' should be a non-negative integer, 'g', 's' or 'fast'   make: *...
asked by 23.02.2015 / 20:04
1
answer

Printing TableView data with QPrinter

How can I get the data of a TableView add in layout html and print with QPrinter ? Code: QString html; html = "<div>Titulo</div>" "<div>etc</div>" "<div>etc</div...
asked by 22.03.2014 / 17:33
2
answers

Qmake - Independent executable

How do I compile a Qt Creator program (.pro) with "static link"? I compiled it for QT Creator, but I need to copy about 6 dlls into the executable folder, some of them are over 100mb. I read the documentation , but I did not quite understand ho...
asked by 25.12.2014 / 03:02
1
answer

Definition and function of QSharedPointer

As far as I can understand, QSharedPointer is a smart pointer, that is, a pointer that offers automatic garbage collection. If possible I would like a code that would best explain this, including when to use it.     
asked by 09.06.2014 / 19:44
1
answer

Download large with QNetworkreply :: readAll freezes for a few seconds

When using QNetworkreply::readAll to write data to a QFile , at the time the download arrives at the end, there is a fast freeze of 2 to 4 seconds and it also varies depending on the network or site I am downloading, to normal and t...
asked by 05.11.2016 / 20:12