Questions tagged [qt5.6]

Qt 5.6 is the LTS version of Qt released March 16, 2016. Tag this only for the issues specific for Qt 5.6 and not for other versions.

Qt 5.6 is long-term support (LTS) release - it will be supported for 3 years.

Qt 5.6 has been released March 16, 2016.

New features list can be found here.

Here is Qt 5.6 release plan.

144 questions
0
votes
1 answer

Enable own widget for stylesheet

I want to enable my own widget class for stylesheets, whereat I am not talking about setStyleSheet(qss), but selectors in a qss stylesheet. It is understood that I have to replace the "::" with "--" in namespaces. Here ( Qt Stylesheet for custom…
Horst Walter
  • 13,663
  • 32
  • 126
  • 228
0
votes
1 answer

Qt5.6 drawing multi-line text

I want to draw a mutli-line text string with alignment options, do any of the drawText functions in Qt handle this? I want to pass a string "LINE 1\nLINE 2\nLINE 3\n", with alignment options and draw the text around a specified X,Y point. So far I'm…
SPlatten
  • 5,334
  • 11
  • 57
  • 128
0
votes
0 answers

Mouse events or position issues with Qt 5.6

I have had a very weird UI issue on our Qt application for Windows. Ever since upgrading from Qt 5.3.1 to 5.6.0, some widgets have become unclickable until I resize their parent (QDialog, QWizard or simply QSplitter). This includes QPushButtons,…
Vivian Lobo
  • 583
  • 10
  • 29
0
votes
0 answers

How to use TextArea under Android?

I'm trying to build a basic page with some editable text using the TextArea control. Everything works fine under desktop (windows), but there are several problems with Android. Q5.6/windows mingw. android-23 build, min API 16/target 23 (Android…
jkj yuio
  • 2,543
  • 5
  • 32
  • 49
0
votes
1 answer

How to change the icon of a QAction Qt on mouse hover in QToolBar element in qt?

I have some QActions in my QToolBar. QAction doesn't have any stylesheets, so I am trying to change the QAction icon on mouse hover. how can I change the QAction icon on mouse hover
Rishabh Bansal
  • 51
  • 1
  • 1
  • 9
0
votes
1 answer

QWidget framing

I understand that the co-ordinate system of a widget is local to the widget. 0,0 top left. I want to draw a frame in the widget, but using the QRect returned by rect() will result in the right and bottom not framed. There is a method called…
SPlatten
  • 5,334
  • 11
  • 57
  • 128
0
votes
1 answer

Qt Stylesheet affects whole widgets

I have a problem about Qt Stylesheets and I am using Qt 5.6 on windows.(This was not exist in Qt 5.5.1) I use this code piece, this is a QLabel inside a QDialog. ui.newGroupNameLabel->setStyleSheet("QLabel { color : black; }"); I also tried giving…
Wilmort
  • 294
  • 2
  • 15
0
votes
2 answers

Wrapping QObject::connect error

I'm writing a subscription manager, the idea is that a signal and slot connection is created and multiple subscriptions can be hooked on the slot, when an update is received all subscriptions to the slot will be notified of the new data. The issue…
SPlatten
  • 5,334
  • 11
  • 57
  • 128
0
votes
1 answer

Qcache doesn't store anything in Qt 5.6

I'm trying to store QStrings in the QCache but after I close the application and run it again, the cache is empty again. here is my cpp code: QString fileName = QFileDialog::getOpenFileName(this, tr("Select a ply file"), homeDir, ".ply…
Pendar
  • 81
  • 7
0
votes
1 answer

QDockWidgets merging incorrectly

I have a QDockWidget class and a QMainWindow: // docker.hpp class Docker : public QDockWidget { Q_OBJECT public: Docker(QString title, QWidget* parent = 0); } // docker.cpp Docker::Docker(QString title, QWidget* parent): QDockWidget(title,…
Henricus V.
  • 898
  • 1
  • 8
  • 29
0
votes
1 answer

Qt5.6 RHEL Fullscreen application window and child window

I am writing a C++ Qt application with the main window that occupies the entire screen and a child window that contains simulation controls. I'm using RHEL 7.2 with Qt 5.6. The problem is that the child window although visible in the task list,…
SPlatten
  • 5,334
  • 11
  • 57
  • 128
0
votes
1 answer

Reset background color for QTabWidget

I see that QTabWidget background color is lighter than container widget. How to set its background to same as container widget has? Or better make it transparent? I have following code: tabWidget->setPalette(palette()); …
Aleksey Kontsevich
  • 4,671
  • 4
  • 46
  • 101
0
votes
2 answers

Catch mouse event on tree widget item in QTreeWidget

In tree widget I have following signal connected: connect(mTreeWidget, SIGNAL(itemClicked(QTreeWidgetItem*, int)), SLOT(onItemClicked(QTreeWidgetItem*, int))); where onItemClicked() slot is following: void…
Aleksey Kontsevich
  • 4,671
  • 4
  • 46
  • 101
0
votes
1 answer

Casting QByteArray to `long` outputs different result for same input

EDIT: Added full MCV example project. I have a strange problem where the same code and same input produce different output values. The purpose of the code is to test a function that takes a value packed into 4 bytes, and unpack it into a single…
DBedrenko
  • 4,871
  • 4
  • 38
  • 73
0
votes
0 answers

Encrypting and compressing using p7zip

I am trying to replace the usage of 7zip in my QT Xcode project. Currently the files are archived using a password and my project on Windows uses 7z when accessing automatically opens the file. I have found p7zip to be the port of 7zip for…
Vivian Lobo
  • 583
  • 10
  • 29
1 2 3
9
10