Hi all, I've wrote a simple opengl program to make some test. Here is the program:
#include <QApplication>
#include <QGLWidget>
#include <QTimer>
#include <glut.h>
class Ren : public QGLWidget
{
public:
Ren() : QGLWidget()
{
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()),
this, SLOT(updateGL()));
}
void startUp...
I download the qt framework and debugging helper, I can debug my source with Qt creator, but I can't step in to the Qt source code, I have download the source of Qt, how to config the source to let me can trace into the source? or, Must I compile the library from source to do this?
I can trace into Qt source Under Windows using Visual c...
Hi,
I want to make something like a hud. I have a QGraphicsScene with a huge QPixmap, that I added to a much smaller QGraphicsView. Now I need to add some control elements, like QLabel, QPushButton and QGraphicsEllipseItem. That's, I think, is not a problem. I found this helpful page Graphics View Classes. But how do I anchor this cont...
Hi,
I'm trying to implement some kind of drag and drop feature between two widgets with Qt 4.5. So I've reimplemented the mouse events methods to do what my program is supposed to do when I press the mouse button on the first widget and move the cursor & release the button on the second one.
Problem is: after the pressEvent on the firs...
I'm using the following piece of code to make HTTPS requests with a server.
QNetworkRequest request;
//request.setSslConfiguration(QSslConfiguration::defaultConfiguration());
request.setUrl(QUrl("https://www.someurl.com/"));
QNetworkReply *reply = manager->get(request);
Everything seems to be working with my test server, but I would...
How do you change the behavior of a QListWidget so that it resizes its height instead of choosing a (seemingly arbitrary) height and adding scrollbars? See screenshot:
The QListView's should fill up as much space horizontally as they can (creating as many "columns," if you will.) Then they wrap and make as many rows as necessary to fi...
In updated "App Store Review Guidelines", we can see:
we are relaxing all restrictions on the development tools used to create iOS apps, as long as the resulting apps do not download any code.
It's a good news for Adobe absolutely. But for Qt, does it mean that it's possible to port Qt to iPhone/iPhone, so that we need not to add coco...
Within my C++/QtTestLib Class, how can I get a count of the number of private functions in this class so that I can output it at runtime?
...
I am developing a WYSIWYG document editor. The editor is build around the Qt framework because Linux/KDE is the main platform it will run on.
I have been using the QTextEdit widget so far and have gotten basic text editing and formatting in. However I've come to a standstill on how to implement the following requirement:
A document is ...
I followed what they said at pyside.org but somehow i can't get it to work.
I downloaded the two files that they are linking from their site (qt libraries and pyside for python 2.6)
When I try one of their examples I get the following message:
Traceback (most recent call last):
File "2dpainting.py", line 28, in <module>
from PySi...
From this screenshot you can see a lot of space inside the rows:
I've used these functions to get resizing:
resizeRowsToContents();
resizeColumnsToContents();
How can I get a better fit for cells/rows sizes?
...
The documentation states that:
The Q_OBJECT macro must appear in the
private section of a class definition
that declares its own signals and
slots or that uses other services
provided by Qt's meta-object system.
But exactly what does that mean? On which QObject-derived classes can I safely omit it? Will problems arise if y...
Hi
So to give a little context, my goal here is to produce a binary which will run my Python/PyQt4 application on any recent linux (but mainly ubuntu), without requiring the user to install the pyqt4 or pyqwt5 library. (If anyone can give a better way to do that than my method below, that would be great also :)
I've got this mostly wor...
Hi, I have a MANET and am writing an application which will be running on the base station and plugged into the TCP network.
I wanted to know how can I figure out the signal-to-noise ratio of a selected node in the MANET? The GUI is based on Qt and I am also using BOOST which I don't have much experience with.
I don't know where to st...
Which one of the following IDEs/language will you recommend for developing a project under windows that involves recognizing hand gestures and interacting with the OS? I will be using OpenCV library for image processing tasks. After that I will be using win32 APIs or .NET framework to interact with the OS, depending on the tool you sugge...
Hi all,
I have Qt 4.6.3 installed at C:\Qt\4.6.3 (Windows).
I just compiled a Qt application and went to run the EXE. When double-clicking on the executable, saw an error message:
"This application has failed to start because QtXmld4.dll was not found. Re-installing the application may fix this problem."
Found QtXmld4.dll in C:\Qt\...
Hi there.
My main window has the following draw-function:
void MainWindow::paintEvent(QPaintEvent*)
{
QImage sign(50, 50, QImage::Format_ARGB32_Premultiplied);
QPainter p(&sign);
p.setRenderHint(QPainter::Antialiasing, true);
p.fillRect(sign.rect(), QColor(255, 255, 255, 0));
p.setBrush(Qt::blue);
p.setPen(Qt::N...
I'm writing Qt application using some 3rd party library. I want to package it into a bundle.
I'm using macdeployqt and this tool is actually copying not only Qt Frameworks but also 3rd party library into Frameworks subdir of Contents dir inside app bundle.
The problem is that this 3rd party library need some additional file to work pr...
I'm making a video player using PySide which is a python bind to the Qt framework. I'm using phonon(a module) to display the video and I want to display text above the video as a subtitle. How can I put another widget above my phonon widget. Is opengl an option?
...
Right now I have Phonon working on windows with a DS backend. However, it will not play certain mp3 files and although it appears to be playing m4a files (the song progress bar keeps moving) no sound comes out. The application is built using PyQt4 on Windows and is aimed at Windows users.
I know that this is not the fault of my program...