Category "qt"

Qt / SVG - getting accurate coordinates of element

I'm working with Qt, trying to prototype a "clickable SVG" widget. I'm trying to get accurate coordinates for a particular element within an SVG from a QSvgWidg

Get Qt5 up and running on a new Mac

Coming from Ubuntu I bought a new iMac and tried to setup my Qt development. Everything else is already up and running. Xcode command line tools are also instal

Qt serial port: write and read data

I'm able to connect to my serial port, but I need to read data from it all the time. It's working for about 39 minutes, but after it stops at line serial.flush(

qt exec() cannot be closed

I am coding in C++ with Qt5.7. I are facing a problem with QDialog exec(). I need it in modal, so I cannot use show(). When the dialog is finished and closed, t

Run button is disabled in Qt Creator

This happens even on a freshly created, empty project. The Run (and also Debug) buttons are disabled for the Qt5 configuration (they're enabled for the Qt4 con

PyQt GUI size on high resolution screens

I posted a question a while ago asking about Tkinter backends and subsequently forgot about it but I've since realised that I'm using the pyqt backend. Is there

Creating Python bindings for a large quantity of C++ Qt Libraries

Question in short: Do you maybe know, or have any idea how I could implement the below mentioned, existing libraries in Python, whether that be through bindings

QtCreator: Header files not found when using CMake

I have tried this on multiple platforms, experiencing the same issue every time. I successfully build and run my C++ OpenFrameworks application using QtCreator

Which is Key_F13

I am developing a program where we need to implement Key F13 but I can't find F13 in keyboard. Can someone please tell me which code belongs to Key F13 in norma

Compress string with GZip using qCompress?

I have a string of hex data (0a000a0165787a... etc) that I write to a file like this: void Output(QString FilePath, QString Output) { QFile file(FilePath);

How to get the DPI of the display screen in Qt

I need to get the DPI value of display in Qt. I am able to get it in Qt 5.0 using the following: #include <QScreen> ...... ...... QScreen *srn = QApplica

Can't open compressed file

I'm trying to compress a text file with QT: QFile inFile("d:\\build\\Directories\\Debug\\files\\developer.txt"); bool open_file_result = inFile.open(QIODevice:

Why if I use a QImage instead of imread I get a null pixmap.?

I try to execute the next code, But If I use a file Image the code run well but If I tried to use a QImage I get the next error. In the same way I get the error

Change default working directory in Qt Creator

Is it possible to change the default Working directory in Qt Creator to specified path? Or is it possible to set Working directory in .pro file? PS: I know ab

QT_STATIC_CONST does not name a type

I was using QT5.4.1 version with the QWT-6.1.2 library that I've installed but in compiling I receive the error "QT_STATIC_CONST does not name a type". After so

Qt Creator GDB "Additional Startup Command" , "Additional Attach Command" what is the syntax?

Having troubles settings solib-search-path in Options->Debugger->GDB-> "Additional Startup Command" , "Additional Attach Command" looks like if I do: "

QT QTest::keyclick or mouseMove seems don't work with QMenu in my case

I have a simple flow Click on QPushButton QMenu with a couple of actions appears Navigate through the QMenu using key clicks or mouse move. (Triggering actions

QWebChannel after I registered some objects I need to register a new object to the Js but it faills to call this new objects cpp functions

At some I need to register some objects with qwebchannel and futher in the application I need to register a new object to the qwebchannel. The thing is that it

QSqlQuery::exec: database not open

I'm working on qt, my database was rightly connected with qt but suddenly i have the following problem every time i debug,,,i i become not able to fetch or to a

Using chromium embedded framework inside qt application

I am investigating the option of using chromium embedded framework in C++ desktop application to implement new HTML views. The issue is all the GUI are implemen