Найденные страницы с тегом qcoreapplication всего 46

AfxGetApp () -> m_lpCmdLine для QT? – 1 Ответ

Используйте QCoreApplication :: arguments(). Вы получаете QStringList. .i1a { width: 336px;... Вопрос по теме: c++, qt, mfc.

как использовать QTimer без приложения QT – 2 Ответа

QTimer зависит от QCoreApplication. Если вы не запустите QCoreApplication, ничего не активирует... Вопрос по теме: c++, timer, qt.

Why does QCoreApplication call `setlocale(LC_ALL, "")` by default on Unix/Linux?

Why does QCoreApplication call `setlocale(LC_ALL, "")` by default on Unix/Linux? linux

user's arguments are empty with QCoreApplication in mysterious cases

user's arguments are empty with QCoreApplication in mysterious cases linux

[Solved] How clear screen in QT console? - Local Coder

I need clear QT console. What is the comand? main.cpp: int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); cout<<'How delete this?'; //system('CLS'

[Solved] Multiple QApplication instances - Local Coder

I'd like to know what are the implications (problems) of having multiple QApplication/QCoreApplication instances in the same process, and how to solve some issues regarding it. The

[Solved] Assigning to nested QVariantMap - Local Coder

#include <QtCore/QCoreApplication> #include <QVariant> #include <QtDebug> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QVariantMap

[Solved] Why QXmlQuery seem to add a ` \n` to results? (and how to solve it?) - Local Coder

Writing a little code to extract some values from an XML, the result of the XPath seem to add \n after the content. #include <QCoreApplication> #include <QXmlQuery> #in

[Solved] How to get QIODevice-like signals for console input (stdin)? - Local Coder

I'm writing console app, based QCoreApplication, and I want to get signals, when user input something into stdin (whole line at once or by characters, it is not important for my ap

[Solved] How do I read from QProcess? - Local Coder

I have this simple C++ program: int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QProcess ps; QByteArray ba; ps.start('ls J:'); ba = ps.rea

[Solved] Newbie problem with QT C++ - Qimage dont work? - Local Coder

I am trying to do console application to read pixels from image: #include <QtCore/QCoreApplication> #include <QtGui/QImage> #include <iostream> int main(int arg

[Solved] Does QThread::quit() discard all events in EventQueue? - Local Coder

There is main function: int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); Worker w; QObject::connect(&w, SIGNAL(done()), &a, SLOT(quit()), Qt:

[Solved] QT5: Failed to load psql driver in windows - Local Coder

I want to load qt5 psql driver in windows 7. I've load the library as this way: qDebug() << QCoreApplication::libraryPaths (); QString driverName = 'QPSQL'; QSqlDatabase::add

[Solved] QEventLoop: get time when an event was scheduled - Local Coder

Is it possible to get the time when an event has been scheduled to a QEventLoop (e.g. the QCoreApplication event loop)? I have a situation where the main event loop is paused. When

[Solved] How to use Qt-Dbus bindings without blocking the main thread - Local Coder

My goal is to create a library using the Qt's DBus bindings. I tried to create a Qt application without launching the QEventLoop (provided by the QCoreApplication class) in the mai

[Solved] Running function in Qthread - The application will hang - Local Coder

I have some problems with threading inside QT. #include <QCoreApplication> #include 'handler.hpp' int main(int argc, char *argv[]) { QCoreApplication a(argc, argv);

[Solved] Qt, QCoreApplication and QFtp - Local Coder

I want to use QFtp for the first time and googled a lot to find out how it should be used. This, among others is a typical example: #include <QCoreApplication> #include <Q

[Solved] QStringList QCoreApplication::arguments() - in what situation is index 0 not the application path in Windows? - Local Coder

The documentation for QStringList QCoreApplication::arguments() (Qt) states that: Usually arguments().at(0) is the program name, arguments().at(1) is the first argument, and a

[Solved] QCoreApplication QApplication with WMI - Local Coder

I found some WMI C++ Application Examples in MSDN website. I have tried the code form the below link http://msdn.microsoft.com/en-us/library/aa390423%28v=VS.85%29.aspx when I copie

[Solved] Spyder 5 No QCoreApplication instance found. Application patches not applied - Local Coder

I get the following error after having upgraded to Spyder 5 No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after i

[Solved] How can i properly close QCoreApplication in an QT DLL that is using QtNetwork and QThread? - Local Coder

I'm trying to create a QT DLL to use it in an InnoSetup installer (InnoSetup is written in Delphi Pascal). This DLL should have a function to download a file from the internet when

[Solved] Unable to send SMS using AT Commands - Local Coder

I am using QextSerialPort to access ports #include <qstring.h> #include <qdebug.h> #include <QCoreApplication> int main(int argc, char *argv[]) { QCoreAppl

[Solved] Should I use QCoreApplication::processEvents() or QApplication::processEvents()? - Local Coder

I have a method which is called from both QThreads and the main thread. this method can sometimes take a long time to do its computations in a loop so I put QCoreApplication::proc

[Solved] QPainter.drawText() SIGSEGV Segmentation fault - Local Coder

I'm trying to print a simple text message in a thermal printer through Qt5 printing methods. #include <QCoreApplication> #include <QDebug> #include <QtPrintSupport/Q

[Solved] Get PID of process after fork in Qt - Local Coder

I am creating a Qt/C++ console application which successfully forks. When I call QCoreApplication::applicationPid() before fork, and then after fork (in the child), I get the same

Похожие теги: