qt

Signals and slots in GTK

Hi everyone, I have used Signals and slots in QT. and i want o implement same stuff in GTk. I have 2 Threads in which i need to pass data, I have done it using signals and slots in QT but now i have to implement this same stuff in GTK+ and C. how should i do it? Thanks, PP. ...

Cross platform installer for Qt

I'm trying to find a cross platform installer for small Qt applications. It looks like the most popular (powerful ?) is BitRock Install Builder, but as the installer will be used in a school (I'm a teacher), I'm looking for a free/open source solution. I'd like to generate an installer for a simple application on Windows, Mac and Linux...

How to add menu to a widget derived from Qwidget

hi.. i want to know how to add menu to a widget, which is derived from Qwidget in QT symbian, i know how to add menu to window derived from Qwindow, but i am not getting for widget derived from Qwidget pls help me.. Thanks ...

Where is the mistake in my code?

Hi.. I want to make a customized list view, in that I will add items dynamically, I have written code for the same, but it's giving me some problems, code is compiling fine but it will give some linker error, I tried the same code by keeping different header files, it runs well, but i am not getting control to my delegate class only. ...

Select from SQLite with Qt

I try to deal with SQLite database on Qt 4.5.3 on Linux. I've already created DB with another program and it looks like this: screenshot Then, I try to perform select on Qt: db = QSqlDatabase::addDatabase("QSQLITE"); db.setDatabaseName(filename); // Here is FULL path to the database. I've checked it twice :) bool ok = db.open(); qDebug...

Problem installing QT on Vista

Hello, I have downloaded QT SDK LGLP (Creator + libraries) 4.6 and I am having problems compiling projects. After install I have added C:\Qt\2010.02\qt;C:\Qt\2010.02\qt\bin to PATH and added QTDIR env varaible containing C:\Qt\2010.02\qt, the I run "configure -platform win32-g++" to compile it. Everything went good. I the tried to use ...

QListWidget on freemantle

Hi, I have a problem with QListWidget on freemantle (maemo, n900). I want to use two QListWidget on same window and allow the user to pick on number in each window. When the user use the second QListWidget, the "blue" color on it disparear. How to change the color of a item selected in QListWidget which is not active ? ...

Capturing high-quality(300dpi) screenshots of QT-based app in Linux

I need to make a screenshot of my form created in QT designer. There are numerous approaches to do screenshots(gimp, import, etc..) but alt of them deal with same dpi as on my monitor(about 100dpi). This is quite enough to publish on web site, but 300dpi images are required for paper publications. Are there any ways to create 300dpi scre...

Window Icon of Exe in PyQt4

I have a small program in PyQt4 and I want to compile the program into an Exe. I am using py2exe to do that. I can successfully set icon in the windows title bar using the following code, but when i compile it into exe the icon is lost and i see the default windows application. here is my program: import sys from PyQt4 import QtGui cl...

how to remove or hide videofile extn in qt

hi i am having one insert button from which i can select videofiles either from phne memory or memory card.but all the files are coming with name and extn(.3gp).how i will remove this or hide this in QT ...

Visual Studio C++ exception... weirdness

Hi, I have a Qt application that I compile in release configuration, run, and then perform operation X in the program. Everything runs fine. I then compile it in debug configuration, run without debugging (so CTRL+F5), perform operation X in the program. Everything still runs dandy fine. But when I try to run the debug configuration w...

Passing data around with QMimeData in Qt drag and drop

I'm trying to understand how data gets passed around when using drag and drop in Qt. From what I understood from the examples I've been studying, you first define a widget as draggable by overriding methods inherited through QWidget. In the implementation of the overridden method, the examples I've been looking at instantiate a pointer ...

Qt 4.6.x under MacOS/X: widget update performance mystery

Hi all, I'm working on a Qt-based MacOS/X audio metering application, which contains audio-metering widgets (potentially a lot of them), each of which is supposed to be updated every 50ms (i.e. at 20Hz). The program works, but when lots of meters are being updated at once, it uses up lots of CPU time and can bog down (spinny-color-whee...

What are the weakness of the QPluginLoader approach?

Here the official QtCreator code repository: git clone git://gitorious.org/qt-creator/qt-creator.git QtCreator use QPluginLoader. What are the weakness of the QPluginLoader approach? What are the differences with QLibrary? ...

help with mixing widget painting and UDP data transfers in a multi-threaded context

Here is what I need to do. -I receive log data through a udp connection -I stack relevant data in a qlist -I have a timer running in the main thread that, on timeout, unstacks this data, updates some arrays then calls widget->update -The widget re-implements paintEvent and uses these arrays to draw charts. What would be the best way ...

QImage from datastream

I'm using the Qt library, creating QImages. I'm able to use this constructor: QImage image("example.jpg"); But I'm having trouble with this static function: char buffer[sizeOfFile]; ifstream inFile("example.jpg"); inFile.read(buffer, sizeOfFile); QImage image = QImage::fromData(buffer); // error here // but there's nothing wrong wit...

qtreewidgetitem addchild to already present item yields nothing

I have two QTreeWidgetItem that are top level. I want to make the second the parent of the first. Calling the first one's addChild(second item) shows no change. How would I accomplish this? ...

Problem in inserting element to listview in QT

HI.. i want to add elements dynamically to listview in QT for symbian OS, i have set of delegate methods associated with listview. if i add elements statically, the control comes to delegate methods, and view is perfect. but if i add dynamically, control is not at all coming to delegate methods. i don't no how to do it. ill place her...

Is it possible to use HTTPS certificates for licensing?

I am working on an application with multiple clients and a server running various web-services for the clients. To implement licensing I am thinking about using HTTPS as a protocol for the web-services using certificates that are issued by our company. By influencing the expiration date of a certificate for a client we can prevent them f...

Qt image format plugins

Can somebody point me to sites with not supported by Qt image format plugins (reading/writing). XCF and PSD for example. ...