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
2
votes
2 answers

QML ListModel and custom function property

I want to write tuned version of TableView (TableView.qml in Qt package). I have ColumnDescriptor.qml with column definition: Item { property string title property var formatDelegate: null .... (other property definition) function…
ShaKeSPeaR
  • 153
  • 1
  • 7
2
votes
4 answers

QTableView row styling

I have got a QTableView component displaying several types of data in the rows. What I need is to display each type of row by different color. My stylesheet looks like this: RecordSheet::item { border: 0px; color: black; …
Honza Vojtěch
  • 685
  • 1
  • 7
  • 27
2
votes
2 answers

Issue with Focusing the Widget in Touch Screen

I have a QWidget which contains some Line Edits. I have to pop up a new Numpad widget when the Line edit gets the the focus. When i click on the Numpad widget, the focus has to be remained in the Line edit widget. So i tried using bool…
New Moon
  • 787
  • 6
  • 21
  • 35
2
votes
1 answer

Stop QDrag manually

I need to stop QDrag when dragEnterEvent occurs. I want to release QDrag without releasing mouse button. I have tried to send events to QDrag with no luck. QMouseEvent* evt = new QMouseEvent(QEvent::MouseButtonRelease,event->pos() ,Qt::LeftButton, …
Yash
  • 6,644
  • 4
  • 36
  • 26
2
votes
0 answers

Getting issue in making .deb package of QT 5.2.1 app to deploy on Ubuntu 14.04

I want to make .deb package for the QT 5 .2.1 desktop app for ubuntu 14.04 64 bit. I have installed QT 5.2.1 on Ubuntu 14.04 and made a demo app for the testing purpose in which I have used Qt webkitwidgets. During in making the .deb package of…
User2546
  • 33
  • 1
  • 8
2
votes
1 answer

How to request administrator privileges?

Applications must be run with administrator privileges. How to ask the user is? How to verify that he agreed to? How do I know whether already running application as an administrator? Made as described here by the user ChrisW67. The result is not…
tioo
  • 99
  • 1
  • 6
2
votes
1 answer

Qt UDP mDNS response packet, not structured right

I am trying to send out a Proper mDNS response packet using QUdpSocket. The trouble I am having is creating the packet correctly. Could someone please show me the proper way to put together the packet. So far this has not worked: QByteArray…
2
votes
2 answers

Duplicate symbols while compiling QtQuick2 application

I'm currently trying to build and run a QtQuick 2 application, but a duplicate symbol error appears : ld: 55 duplicate symbols for architecture i386 and here are some duplications : duplicate symbol __ZTS16QActionAnimation…
Supermomo
  • 81
  • 6
2
votes
0 answers

Qt 5.2 with qml-box2d

I'm trying to use the qml-box2d plugin in my qtquick project. I already compiled the plugin with qt5.2, it generates two files, Box2Dd.dll and libBox2Dd.a. The problem is when I try to use it, because when I compiled my project I found this error: …
1
vote
1 answer

QLabel is painting improper background when using HTML content

Usually, QLabel is painted with a transparent background. However, if the HTML content is set as a label text, it starts using the parent (I guess) background: MainWindow: MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { …
John Doe
  • 555
  • 6
  • 17
1
vote
0 answers

QClipboard::setImage() oddity with non-square images

The code below works fine: QClipboard *clipboard = QApplication::clipboard(); QImage image( 400, 400, QImage::Format_RGB32); image.fill( Qt::white ); clipboard->setImage( image, QClipboard::Clipboard ); But if it set QImage's dimension…
Paulo Carvalho
  • 554
  • 5
  • 10
1
vote
2 answers

How to capture resizing of QTreeWidget columns

I need a column in my QTreeWidget which's width is always x pixels. So i want to capture a resize of my QTreeWidget columns, to set the with back to my x on resize by user. But i can't find any Signal like columnWidthChanged. Is there any way to…
Haselnussstrauch
  • 333
  • 2
  • 10
1
vote
2 answers

Justifying multi-line text in QML Text element

I have trouble getting text justified in QML (Qt 5.2.1 under Windows MSVC2010 OpenGL). Here's example code: import QtQuick 2.2 import QtQuick.Window 2.1 Window { visible: true width: 160 height: 60 Text { text:…
hyde
  • 60,639
  • 21
  • 115
  • 176
1
vote
1 answer

Is Qt’s model–view system intended to work with one model or multiple models?

I’m trying to display some tabular data with a QTableView subclass and a QAbstractTableModel subclass. I can’t get the data to show up, but before I start really pounding on it I want to make sure that I’m using models in the way they were…
bdesham
  • 15,430
  • 13
  • 79
  • 123
1
vote
0 answers

Build PJSIP in QT

I want to write a C++ application which works with PJSIP in order to create sip calls to IP phone. after added libraries and remove errors .I had runtimes errors about libraries that I attached the own QT. now I am facing with this problem. :-1:…
sina
  • 21
  • 1
  • 3