qt

emit Qt signal from non Qt Thread or ouside Qt main event loop with at 4.5

Hi, I'm calling a "emit signal1()" from a non Qt thread. By non Qt thread I mean not from the GUI Event Loop and not from any QThread run() method or any QThread own event loop. It is simply a pthread (pthread_create()) that calls a method of a QObject which emits signals. ex: MyQbject: public QObject { ... void emitBunchOfSignals() ...

Qt painted content goes lost

Hi All, I am writing an info-screen program. I created a full-screen widget and draw contents onto it. In order to extend the life cycle of the TFT-display device, I want to implement a pixel-shifting feature. With other words, in every X minutes, I shift the screen to left/right/top/down for Y pixels. My approach is as follows: I ...

QProgressbar and QNetworkReply signals

Hello, i'm writing an application in C++ with the Qt Framework. It should download a File over http and display the download progress with a QProgressbar - but I don't get that part to work! Sample code: QProgressBar* pbar = new QProgressBar(); //calls the website and returns the QNetworkReply* QNetworkReply* downloader = Downloader->...

How can I enable auto-updates in a Qt cross-platform app?

I love applications that are able to update themselves without any effort from the user (think: Sparkle framework for Mac). Is there any code/library I can leverage to do this in a Qt app, without having to worry about the OS details? At least for Windows/Mac/user-owned-linux-binaries. I could integrate Sparkle on the Mac version, code ...

Extract individual images (QImage) from a video stream in Qt

I have successfully written a Qt program to play a video from a RTP stream (or other sources). I am using the Phonon classes MediaObject and VideoWidget. My question is: how can I gain access to the individual frames? I wanted to do motion detection by differencing successive frames. Many thanks for your advice. wpoet. ...

Missing file [Qt]

Hi, I'm successfully going through proccess of building an application in Qt but when I try to run .exe file by double clicking on it (outside of qt) I'm getting an error saying: "The program can't start because mingwm10.dll is missing from your computer. Try reinstalling the program to fix this problem." I checked for this file and I fo...

QLineEdit: how to handle up and down arrows?

Hello. I have a console input in my Qt based application, it's a QLineEdit, all Ui is designed via QtDesigner. Is it any easy way way to handle up and down arrows in order to implement input history? The 'go to slot' only show returnProcessed signal, no way i can see to handle up and down arrows :( ...

got stuck on using prepare() and bindvalue() in c++ QT

hi , I've written a SQL query based on QT assisstant and it says that you can use the prepare() method instead of exec() then you can pass your parameter by the help of two methods called : bindvalue() and addbindvalue() here is an snippet code of my problem : Query->prepare("SELECT ID , Row , Col FROM sometable WHERE Row = :row AND Co...

Newbie QT question about connect

Hi, I just tried to set up a small QT example and the connect statement fails to compile. the error message from the compiler is: "no matching function for call to 'MainWindow::connect(...'" what am I doing wrong her? Thank you for your help. #ifndef MAINWINDOW_H #define MAINWINDOW_H #include <QMainWindow> #include <QNetworkAccessMa...

QScintilla, example project doesn't work

I wanted to try QScintilla out. So i downloaded and installed it, no problems. When i ran the example project it said I was missing QtCored4.dll, so i copied it into the directory, then it said it needed other dll's aswell so copied them too. At the end it gives me a Visual C++ Runtime error. It just says it terminated in an unusual way...

Approaching refactoring

I have a very data-centric application, written in Python / PyQt. I'm planning to do some refactoring to really separate the UI from the core, mainly because there aren't any real tests in place yet, and that clearly has to change. There is some separation already, and I think I've done quite a few things the right way, but it's far fro...

loading an external c++ function from an HTML page

Hi I am trying to develop an HTML page (internal of course) that can in some way be able to load another application. I don't mind using any language to do that. I am using a webkit interface to render the HTML page (well, it QTWebKit) and sadly it does not allow using ActiveXObject (JavaScript) to be used to call another app. I am not ...

How to print table header on every page with Qt Web Browser?

I have large table and I would like to print table header on every page. I try'ed using THEAD element, and it works in other browsers (Firefox, IE) just well. When I hit print preview in Qt Web browser, it doesn't repeat table header. Is there any solution for that? ...

How to build latest Qt from Git repository on windows?

Hello. I have tried to build a latest Qt from Git repository on window. Following commands: mkdir c:\qt\latest cd c:\qt\latest git clone git://gitorious.org/qt/qt.git cd qt set PATH=%PATH%;c:\qt\latest\qt\bin configure.exe Unfortunately, very shortly configuration stops with error: Microsoft (R) Program Maintenance Utility Version 9...

Windows thumbnail/frame view

What would be the easiest way to make a thumbnail view, where you have a panel with a vertical scroll bar, and a matrix of images describing their associated image? I'd also like it such that if the parent frame resized horizontally, the matrix would shrink to as many columns as necessary to display the thumbnails without a horizontal sc...

QT for cross platform plugin development?

I have a pre existing application, that calls out into a plugin library. I want the plugin library to be developed in QT, and to be able to display a QT UI. However, when I attempt to create a QWidget it complains that the QApplication needs to be created first. Is it not possible to use QT to develop cross platform plugins? E.g. a net...

how pyqt implement signal and slot in qt?

pyqt is created by SIP, and SIP support signal and slot. qt use moc to create a moc data about the signal and slot functions. and qt search slot by index the function name. and I want to know how pyqt archive this? this is a critical question for better understanding pyqt... ...

Qt (QFtp) question

Hello i am learning qt and trying to upload a file using QFtp i wrote the folowing code this->connect(this->ftp, SIGNAL(done(bool)), this, SLOT(ftpDone(bool))); this->connect(this->ftp, SIGNAL(dataTransferProgress(qint64, qint64)), this, SLOT(dataTransferProgress(qint64, qint64))); this->connect(this->ftp, SIGNAL(stateChanged(int)), thi...

Qt signaling across threads, one is GUI thread?

What does it mean to move a object from one thread to another in Qt using moveToThread? Everything seems to work even before using moveToThread, which moves the object from one thread (GUI thread) to a another thread ( worked) and Qt:connect calls the appropriate slot on object. Is there any difference because of where the object lives,...

What is the best practices in switching between application windows in Qt?

I have an application with the following UI forms deriving from QMainWindow LoginWindow TasksWindow DetailsWindow I'm supposed to login into the application in the LoginWindow where I will move to the TasksWindow. In the TasksWindow, I will choose an item from a combo box, and then I should move to the DetailsWindow and populate data...