Questions tagged [qt4.8]

For issues relating to using the Qt framework, version 4.8 and no other version. Do not use if you just accidentally use that version. Use the tag qt for Qt related issues that will likely occur in other versions as well.

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.

330 questions
6
votes
1 answer

Expose abstract type as Q_PROPERTY to QML

I am using Qt 4.8 with BB10. I defined a base interface for classes to implement: class AbstractImageProcessor : public QObject { public: AbstractImageProcessor(QObject * parent) : QObject(parent) {} virtual QImage process(const QByteArray…
krdx
  • 1,315
  • 15
  • 22
6
votes
1 answer

QHttpMultiPart: post files to PHP script

I am working in Qt 5 and struggling with a multipart upload. My script is as close to the docs as possible: QUrl testUrl("http://localhost/upload/test.php"); QNetworkRequest request(testUrl); QHttpMultiPart *multiPart = new…
flatface
  • 186
  • 1
  • 7
6
votes
2 answers

Detect hiDPI mode

Working with Qt 4.8.4 on OS X -- Desktop Application development. I need to be able to detect, at paint time, if I am on a hiDPI display ("retina") or not. Does anyone know how to achieve this?
JasonGenX
  • 4,952
  • 27
  • 106
  • 198
5
votes
1 answer

pyqt qt4 QTableView how to disable sorting for certain columns?

So I have a QTableView and I only want to let column sorting on column 1 but not column2. Naturally I tried to installEventFilter on QHeaderView or QTableView, but MouseButtonPress event is not being passed unless you installEventFilter on…
user178047
  • 1,264
  • 15
  • 20
5
votes
1 answer

Double line in HTML table

I create HTML table in Qt: QString css; css = "