Top "Qt" questions

Qt is a cross-platform application development framework widely used for the development of application software that can be run on various software and hardware platforms with little or no change in the underlying codebase, while having the power and speed of native applications.

Passing an argument to a slot

I want to override mouseReleaseEvent with a bunch of QActions and QMenus... connect(action1, SIGNAL(triggered()), this, SLOT(onStepIncreased())); connect(…

qt qsignalmapper qt-slot
How to create a new File with full path in Qt?

I am a Qt beginner and just got stuck with the problem. I am looking for a file SomePath/NewDirectoryA/…

qt file qfile
Qt C++ QString to QByteArray Conversion

I have created an encrypt/decrypt program, when encrypting I store the encrypted QByteArray in a text file. When trying …

c++ qt qstring qbytearray
undefined reference to template function

I have three files . The contents of main.cpp are #include<iostream> #include<QString> #include "util.…

c++ qt boost undefined-reference
Adding extra compiler option in Qt

Where in Qt can I specify additional compiler options? Like for example -std=c++0x?

c++ qt qt-creator
QTextEdit with different text colors (Qt / C++)

I have a QTextEdit box that displays text, and I'd like to be able to set the text color for …

c++ qt colors qtextedit
How do i use Qt in my Visual Studio 2015 projects?

We have large project that used .NET Framework for showing forms/windows. Recently i decided to deprecate CLR dependency and …

visual-studio qt visual-studio-2015 qt5
How to deal with "%1" in the argument of QString::arg()?

Everybody loves QString("Put something here %1 and here %2") .arg(replacement1) .arg(replacement2); but things get itchy as soon as you …

qt string-formatting placeholder qstring
Display image in Qt to fit label size

I already tried several methods on displaying an image on a form, but none of them works how I would …

image qt autoresize
Using emit vs calling a signal as if it's a regular function in Qt

Let's say I have this signal: signals: void progressNotification(int progress); I only recently learned about the emit keyword in …

c++ qt