Questions tagged [qt5.1]

Qt is a cross-platform application development framework widely used for the development of GUI programs.

Qt (pronounced officially as cute (/kyut/) though commonly pronounced as Q.T. (/ˈkyu ti/)) is a cross-platform application development framework widely used for the development of GUI programs (in which case it is known as a widget toolkit), and also used for developing non-GUI programs such as console tools and servers. wikipedia

Qt was created by Trolltech, and is currently developed and maintained by Digia.

Current version:

The latest official release is 5.3.0. The major version indicates API compatibility.

Resources:

There is extensive official documentation (all classes) available on Qt's website, in addition to tutorials and examples. You will often see these tutorials and examples referenced in the questions and answers on this site. Qt also provides an integrated development environment named Qt Creator. Though it mainly aims at creating Qt applications, it can be used to create regular C++ applications too.

Tagging recommendation:

You will often see questions tagged specifically as , , or to indicate that the question is related to Qt 3.x, 4.x, or 5.x respectively. Qt 3.x is no longer supported and Qt 5.x has been released recently, so the default when version information is lacking is to assume version 4.x of the API.

Writing recommendation

Qt is a cross-platform application development framework, but QT (QuickTime) - is an extensible multimedia framework developed by Apple Inc.

53 questions
20
votes
4 answers

Qt: CONFIG += C++11, but -std=c++0x

When I compile a project under Qt Creator 2.8 / Qt5.1 with VS 2010 all is fine. If I do the same with MinGW I get the following error. error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
17
votes
4 answers

Assigning Keyboard Shortcuts to QML Components

I am deep into building a Desktop Application with QML and Qt Creator and I am currently researching keyboard handling and how it works with QML elements. I am already aware of the lack of proper QML replacements for Desktop Widgets. My current…
Vikas Bhargava
  • 691
  • 1
  • 9
  • 22
14
votes
5 answers

Qt 5.2 Including External File into an Android Package?

How to include an external file into 'apk' ? Example: There is "123.txt" in the main directory where .pro file exists. What should I add to pro file to put "123.txt" into apk. I tried DEPLOYMENT, DEPLOYMENTFOLDERS. But they only works with Symbian…
user2400925
11
votes
2 answers

Qt: UI with c++ vs with xml vs with qml

I have started learning qt today and have a question. When I create a project, it comes with *.ui file which is XML kind of file but in the book, I am only creating UI with pure c++(classes). I have heard there is another way of creating the UI with…
khajvah
  • 4,889
  • 9
  • 41
  • 63
10
votes
1 answer

How to show a context menu on right click in TableView rowDelegate

I want to show a context menu when right-clicking on TableView rows. I tried this code: import QtQuick 2.0 import QtQuick.Controls 1.0 TableView { id: tableView width: 300 height: 200 TableViewColumn { role: 'a'; title: 'a'; width: 50…
silviubogan
  • 3,343
  • 3
  • 31
  • 57
10
votes
2 answers

Qt Creator 2.8.1 + MSVC 2013 Express = No compiler can produce code for this Qt version

This question was asked on this thread, but is was closed as "off topic", which is confusing to me. This not a question looking for an opinion. This is a legitimate issue with concrete details and no doubt has a concrete answer. I'm setting up a…
Zdenik
  • 406
  • 1
  • 4
  • 13
7
votes
2 answers

Error : 'QtGui/QMainWindow': No such file or directory : Qt 5.1.1

I have installed the Qt5.1.1 and create a new Gui Application. The code in mainwindow.h shows: #if QT_VERSION >= 0x050000 #include #else #include #endif I think it is fine. But when I run it, I have…
kalryoma
  • 73
  • 1
  • 1
  • 4
6
votes
1 answer

QML file include - or one monolithic file (structure QML code)?

This is a QML newbie question. From the table view example I have code like this: Column { anchors.top: toolbar.bottom ..... TabView { id:frame ...... Tab { title:…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
5
votes
2 answers

qt5.1.1 mysql ubuntu QMYSQL driver not loaded

I'm trying to access mysql using Qt5.1.1 but i am getting the error the error below. I also searched a lot on google but unable to fix it.Please suggest me a solution so that i am able to resolve this error. error: QSqlDatabase: QMYSQL driver not…
Rsvay
  • 1,285
  • 2
  • 13
  • 36
5
votes
1 answer

Connecting a signal from QML to Qt 5.1

I would like to connect a qml signal to a qt slot with qt 5.1. I can't use DeclarativeView in this Version of qt. My qml element is a simple rectangle and on the onClicked event starts the signal. Rectangle{ id:test width: 200 height:…
Claudia_letsdev
  • 273
  • 4
  • 9
4
votes
3 answers

How to access data in QML TableViewColumn delegate?

How to access the current item in a TableViewColumn? TableView { id: atcTableView model: myatclist ... TableViewColumn { ... } TableViewColumn { id: atcTableViewColFreq role: "frequency" title:…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
4
votes
1 answer

Focus-out event on clicking focused widget

I have the following behavior. I overload focusOutEvent() handler for my widget class. But the handler is called not only, when the widget losses focus, but either on clicking on it. Just like it would be losing focus and then regaining…
Number47
  • 493
  • 4
  • 14
3
votes
2 answers

Play notification (frequency x) sound in Qt - easiest way?

Qt 5.1 or later: I need to play a notification sound of frequency x for n milliseconds. It'd also be nice if I could combine tones like this: 1000Hz for 2 secs, then 3000Hz for 1 sec, .. The easiest way is to use files (WAV, MP3, ..), e.g. as…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
3
votes
1 answer

Qt: Profiling on OS X using Instruments (Mavericks)

I've been trying to profile an application I've written under OS X Mavericks using Instruments following various bits of information I've found online but I'm not able to get any information out of it. I've tried making sure I've got the latest…
Nicholas Smith
  • 11,642
  • 6
  • 37
  • 55
3
votes
1 answer

How to Drag and Drop Custom Widgets?

I have created my own custom widget and I want to support internal drag and drop for the widgets. I have added 4 of my custom widgets in a vertical box layout. Now i want to drag and drop the custom widgets internally. To be more clear, If i drag…
New Moon
  • 787
  • 6
  • 21
  • 35
1
2 3 4