qt

To connect Gstreamer with Qt in order to play a gstreamer video in the Qt Widget

I tried using phonon to play the video but could not succeed. Off-late came to know through the Qt forums that even the latest version of Qt does not support phonon. Thats when i started using Gstreamer.Any suggestions as to how to connect the Gstreamer window with the Qt widget?My aim is to play a video using Gstreamer on the Qt widget....

Qt: Detect Double-Click with Modkey (Shift, CTRL, etc.)

How can I detect whether a double click on a QWidget (QStatusBar, in my case) occured while a modifier key was held down? I can overload void QWidget::mouseDoubleClickEvent ( QMouseEvent * event ) to get the double click, but how can I sure whether the widget receives the key events when it might not have the focus? ...

deployment Portable DB

How can i deploy a system that I can install in a PC and dont have to install a DBMS locally. I want the data repository of this system to sync with the main database online whenever the user want. The local system wont have internet access all the time. I could manage data locally with files or Access but I think a better solution must ...

Python Import and 'object has no attribute' with Qt

From research on Stack Overflow and other sites I'm 99% sure that the problem I'm having is due to incorrect importing. Below is a QLabel sub class that I'm using to respond to some mouse events: import Qt import sys class ASMovableLabel(Qt.QLabel): def mouseReleaseEvent(self, event): button = event.button() if b...

Qt Visual Studio 2008 Add-in problem

I have Qt 2009.05 and Qt VS Add-in 1.1.3 installed on my computer with Visual Studio 2008. When I create simple Qt Application and build it, I'm receiveing this error. 1>LINK : fatal error LNK1181: cannot open input file 'qtmain.lib' When I searched whole disk this file to add in Visual Studio library include variable, I doesn't find....

Convert collection of T into collection of QVariant in Qt

In Qt, how can I convert a typed collection of objects such as a QList<T> into a QList<QVariant>? I suppose I could construct a new list and copy the elements over, converting each to a QVariant along the way, but is there a shortcut? ...

Building multiple targets in Qt / Qmake

How could I specify multiple targets with different configurations in Qt? Is there a way to do it in one .pro file? For example, I would want to build the following 2 .pro files (without having to manually change the .pro file each time): targetA: QT += network TEMPLATE = app SOURCES += main.cpp \ mainwindow.cpp HEADERS += mainwin...

QSize ( int width, int height )

how can i get dynamic size? const size its work " static const QSize resultSize(470, 470); // Bildgröße" but not dynamic ...

Picture control in QT

Hi, i am learning QT, i am not getting how to get the picture control in QT?. in .net we have picture control right same way i need in QT. i know text edit support pictures but is there any alternatives. please tell if so. Thanks ...

How do I prevent Qt buttons from appearing in a separate frame?

I'm working on a PyQt application. Currently, there's a status panel (defined as a QWidget) which contains a QHBoxLayout. This layout is frequently updated with QPushButtons created by another portion of the application. Whenever the buttons which appear need to change (which is rather frequently) an update effect gets called. The e...

Sound capture in CPP and Qt

I would like to capture some sound from the microphone in cpp, in order to use it in a Qt application. So I'm looking for a multi platform library easily integrable in a Qt4 project. ...

Transparent image in QT

Hi.. i am new to QT, i got to know how to load a simple image on a window. i want to know how to make transparent?. please tell me the way to achieve it. Thanks ...

How to force QDateTime::fromString to read UTC time.

I have some input containing UTC time formatted according to iso8601. I try to parse it using QDateTime: const char* s = "2009-11-05T03:54:00"; d.setTimeSpec(Qt::UTC); d = QDateTime::fromString(s, Qt::ISODate); Qt::TimeSpec ts = d.timeSpec(); When this fragment ends, ts is set to localTime and d contains 3 hours 54 minutes. Do...

Question about QThread implementation

Hi, A QThread object represents a single thread of execution. But is the OS thread created when the QThread object is created, or when the start() method is called? I'm interested in whether I can have several QThread objects lying around, and the OS will create threads on start() and kill them after run() returns, and then I can reuse...

Black flicker while resizing translucent Qt widget (only when Aero is enabled)?

I have a top-level Qt widget with the FramelessWindowHint flag and the WA_TranslucentBackground attribute set. It has several children, each of which draws an image on it. They are not in a layout. Instead, I simply move them around when something changes (it is not user-resizable). There are two states to the window - a big state and a...

QT / thread event loop QTimer/Mysql queries

Hello all, I am coding an application on Mac OS X / QT. I have a thread with an event loop. In this thread I make Mysql queries each tick (called by a qtimer). Randomly my application crashs with the following backtrace: 0 0x00e27acd in QMutex::lock () 1 0x00f5842d in QMetaObjectPrivate::connect () 2 0x00f5897f in QObject::con...

QT (4) equivalent macros/methods/constants for their Win32 API counterparts?

I am converting some GUI code I originally wrote using the win32 API, to use QT. I have come accross some items for which I cant find any direct equivalents. They are: GetRValue GetGValue GetBValue PS_SOLID PS_DASH PS_DOT PS_DASH_DOT PS_NULL MulDiv HBITMAP Any help? [Edit] I am building on Ubuntu 9.10 ...

QPixmap from QBitmap

I am converting a win32 api graphing library to use the qt library instead. I have managed to compile succesfully on XP, now to test true cross-platform capability of the new and improved graphing library, I am attempting to build it on Ubuntu (9.10). I have encountered a couple of compile time erros - because some of the classes are Wi...

QList memory deallocation

I'm trying to free memory after using QList, but it doesn't seem to work properly. Here's my code: QList<double> * myList; myList = new QList<double>; double myNumber; cout << "CP1" << endl; getchar(); // checkpoint 1 for (int i=0; i<1000000; i++) { myNumber = i; myList->append(myNumber); cout << myList->size() << endl; ...

opengl problem with QT

Hey, I'm using QT with opengl to make a chart in order to use it in different simulated physical experiments, but I'm facing the following problem. I can't see my chart line unless I minimized my form window and then maximized it, and I should do that all the time as long as my line chart is being drawn in order to get the full result!! ...