Problem in QUdpSocket
the execution of this program gives one result of trade in the first click and the second click on the button the message is sent but the reception does not work. I think that problem is in function “...
View ArticleQt 5 unusable on remote sessions
Hello guys, We have a big problem here. We developped a big professional Qt app, that is on a linux server, that everybody launch using a X11 remote session (using small TX) It’s working great using Qt...
View Articleclear the Qwidget window using window id
Hi, Is there any way to clear/refresh the window (QWidget) by making use of window id. this is the code i am using. Please help. Process1: QX11EmbedContainer *Cont = new QX11EmbedContainer;...
View ArticleQMySQL Plugin for Windows
Hello everyone, I am trying to build the plugin for MySQL and am following these [qt-project.org] instructions. I have installed Qt 5.1 and MySQL 5.6 on my Windows machine. I cannot find the file paths...
View ArticleEmbed qwidget in QML.
Hello! I have my own widget, where I reimplemented paintEvent, mouseMoveEvent and etc, here [qt-project.org] is the answer to my question for Qt 4.7, but what is the way to embed qwidget in QtQuick 2...
View ArticleSelect the appropriate MySQL Server version
Hi I´m using a 64 bit HP Pavilion g6. If using the Qt 5.1.0 for Windows 32-bit (MinGW 4.8, OpenGL, 666 MB) from the download section, what is the correct version of the MySQL server to install? This...
View Articleconverting bytearray to pixmap
QByteArray ba; QBuffer buffer(&ba); QImage img; img.load(“hai.png”); img.save(&buffer,“PNG”); how should i display the image on to a label; i think the loaded image is saved in buffer ....
View ArticleUsing C++ to create Interface Panel with just UI file (QT)
I have a UI file and want to create an Interface by Qt. I think having a UI file is enough to create a Interface Panel. and I want to do this job by a software programme which is created by myself,...
View ArticleLooking for the best way to implement QSpinBox-based delegate with min/max...
As for now I do it in the following way. Header file: #include <QtWidgets/QStyledItemDelegate> class SpinBoxDelegate : public QStyledItemDelegate { ...
View ArticleCan I use QPainter object in paint function, inherited from QGraphicsItem?
Or I can use only in paintEvent (QPaintEvent*) at QGraphicsView object? Thank you.
View ArticleIssue with nested ListViews and scroll bar
Hello, I am facing a problem with nested ListViews and scroll bar. I want to apply a scroll bar to the outer ListView which may contain multiple children ListViews and these can be of different heights...
View ArticlebackgroundVisible property in TextArea, bug?
So it seems to me that the backgroundVisible property of TextArea doesn’t work(Qt 5.1): import QtQuick 2.1 import QtQuick.Controls 1.0 Rectangle { //property alias textDocument:...
View ArticleUsing Breakpad Windows Library files with Qt application, produces the...
Hi, I’m trying to integrate Google breakpad with my application in both Linux and Windows. I’ve had no problems with the Linux integration, however I’m having an issue with the breakpad library files...
View ArticleUsing QAudioDecoder to decode MP3
Hi everyone! I need to find a way to decode various audio formats in a Qt Application and before relying on external libraries I took a lot at the QtMultimedia module where it is indicated that it is...
View ArticleAscertaining text width [solved]
Hi, I’ve looked through the documentation, and not found the answer (or maybe missed it) so I’ll ask here. Apologies if the answer is in the docs. Imagine I have a button, built as an image so it can...
View ArticleQt Quick Controls change background
Hello, I’ve been playing with Qt Quick Controls and I’m trying to make a custom style for a button but I’m having problems animating them when hovering. Here’s what I’ve come up with: import QtQuick...
View ArticleHow can I show a blank QGLWidget as a popup?
I already have a main window with a number of widgets and a QGLWidget on it. I want to create another QGLWidget which opens as a new window. ProjectedHand.h #ifndef _GLWIDGET_H #define _GLWIDGET_H...
View ArticleCreate clickable polygons
Hi, i want make a game using the Qt, for that i have to do clickable polygons, with the form i want. Somebody have any idea with how can i do that? Is better i deform buttons? And how can i do that?
View ArticleHow can I set the background color when I used framebuffer which depths is 8.
My framebuffer depths is 8. I want to set the background color to a fixed value such as “aa”, what should I do ?
View Articlehow to set a QDialog always on top but not modal
I use show() to bring up the dialog but want to it always on top and user still can do something on its parent main window. Is is possible?
View Article