Questions tagged [qt5.2]

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

Qt 5.2 introduces the production-ready versions of Qt ports on Android and iOS completing Qt Everywhere message: Qt runs on all major desktop, embedded and mobile platforms!

Qt 5.2 lets you develop an application that runs natively on all of the following platforms:

Desktop: Windows, Mac OS X, Linux/X11, Solaris Embedded: Embedded Linux (DirectFB, EGLFS, KMS, and Wayland), Windows Embedded (Compact and Standard), Embedded Android, Green Hills Software INTEGRITY, QNX, Wind River VxWorks Mobile: Android, iOS, BlackBerry, Sailfish, WinRT*, Tizen* *Work in progress, technology previews

Information about new features in Qt 5.2 can be found here.

72 questions
0
votes
1 answer

Qt 5.2.1 QFileDialog GDB strange behaviour

I'm using Qt 5.2.1 MinGW 32bit on a Windows 7 machine with gdb from the MinGW 4.8. There is a strange behaviour when i try to singlestep through the code. QFileDialog open; open.setDefaultSuffix("tst"); QString…
Haselnussstrauch
  • 333
  • 2
  • 10
0
votes
1 answer

how to run Qt project on iOS simulator and android simulator using QT Creator on mac Yosemite

i am new with QT development. i am trying to run Qt sample project on iOS simulator and android emulator. it runs fine on real iPhone device but run on iOS simulator, Qt Creator gives me Application Output: error loading …
user3314286
  • 243
  • 3
  • 18
0
votes
2 answers

The size of a QWidget is limited. How can I change it?

I want to build a Qt5.2 Application in C++ with Visual Studio 2013. I apply the QWidget::resize function to set the size of the QWidget object in the image above to 1200*800. But it seems that the QWidget object can't be that large(there are…
LostBenjamin
  • 195
  • 1
  • 8
0
votes
1 answer

qt slots and signalls autoconnecting

I am using Qt 5.2.1. I read this, and that - it doesn't cover my case. I have QSqlTableModel , and a window that uses it. I want to react on its dataChanged signal: void QAbstractItemModel::​dataChanged(const QModelIndex & topLeft, const…
murison
  • 3,640
  • 2
  • 23
  • 36
0
votes
1 answer

Application fails with "Compiling Vertex shader failed"

I'm using Qt 5.2.1 and have compiled it for OpenGL (using build-option "-opengl desktop"). Now when I try to use a component that should make use of OpenGL, it fails with a qFatal("Compiling Vertex shader failed") All other Qt-applications that do…
Elmi
  • 5,899
  • 15
  • 72
  • 143
0
votes
0 answers

QNetworkReply::readAll returns null even though there is no network error

We are developing a Qt5 webkit application which loads html5\javascript\css3 pages. Trying to download a file of size 3MB. But file is downloaded with empty even though there is not network error. Here's code for the same QNetworkRequest…
Pratap
  • 51
  • 1
  • 4
0
votes
1 answer

Select multiple QGraphicsItems without holding down key

I'm using a QGraphincsView that holds several elements which inherit from QGraphicsItem. The whole thing works fine, I can select them as desired. And when I hold down the Ctrl-key I can select several of them. Now I want to implement an optional…
Elmi
  • 5,899
  • 15
  • 72
  • 143
0
votes
1 answer

Qt 5.2 cannot get qWait function to work

I've got a header file with the following include: #include I am trying to use the following line to generate a non-blocking wait in my main window: QTest::qWait(1000 - ui->speedDial->value()); I receive the following…
0
votes
1 answer

Determine source of QKeyEvent

I have a Qt application with multiple widgets showing buttons at the same time. In certain circumstances, I want key presses to be sent to one of the widgets, even if that widget doesn't have focus. To do this, I have overridden keyPressEvent() in…
KyleL
  • 1,379
  • 2
  • 13
  • 35
0
votes
1 answer

QFileSystemWatcher locks directory on Windows

I am watching a directory recursively using QFileSystemWatcher. And I am not able to rename/delete the parent directory either programmatically or manually if its sub directories are being watched. When trying to rename manually through system i get…
Neha
  • 1,751
  • 14
  • 36
0
votes
1 answer

How to connect a Button to FileDialog function in ubuntu sdk?

I've just started to deploy my first application for Ubuntu using QtCreator 3.1.1 based on Qt5.2.1 on Ubuntu 14.10.. I need to open some video files, so I'm going to put a Button to choose file obviously. Also I know I can use this function to open…
sheshkovsky
  • 1,302
  • 3
  • 18
  • 41
0
votes
1 answer

Strange behavior of margins for Qt controls

I have just started using Qt (5.3) and encountered the fact that some controls appears with margins which I cannot control. First, I tried to put QLabel and QPushButton right inside QMainWindow window = new QMainWindow; label = new QLabel( title,…
Boris L
  • 171
  • 1
  • 7
0
votes
1 answer

changing image's size to fit the new size of the GUI window

I've read the documentation of Qt for resizing policy but I couldn't find how can I achieve the scenario of changing the image's size to fit the new size of Qlabel. This is my GUI structure mainLayout: toplayout: QLabel …
CroCo
  • 5,531
  • 9
  • 56
  • 88
0
votes
1 answer

QML failing to detect QObject destroyed in C++

The presented code does the following: <1> Create object of QObject derived class and expose it to QML <2> The class has a pointer to another QObject derived class and the pointer is accessible to QML via Q_PROPERTY. <3> MouseArea in QML detects…
ustulation
  • 3,600
  • 25
  • 50
0
votes
1 answer

How to allow "*" and number only in Regular Expression : Qt5.2

I want to allow * or Number only in my QLineEdit for IP Address. My regular Expression is: QRegExp rx ( "^(0|[1-9]|[1-9][0-9]|1[0-9][0-9]|2([0-4][0-9]|5[0-5]))$" ); Which is find for IP Address, Now I want to allow * symbol for search IP Range. i.e.…
AB Bolim
  • 1,997
  • 2
  • 23
  • 47