qt

QT creator Installation error? - Snow Leopard

Does any one is having problems installing QT creator in snow leopard? I have been trying like 3 times, in different disk partitions and nothing works. It freezes in "Validating packages..." then I got an error, I am trying with Snow leopard 10.6.1 and QT 4.5 I hope I can find some help here. thanks in advance ...

Static build in QT on Windows Vista

Hello, I am currently running Windows Vista Home Premium, and I have developed an application with my friend using QT Creator. We are now trying to deploy our application as just one executable, so we are trying to do a static build. We have added CONFIG += static in our .pro file. We are using this documentation to help us: http://d...

Qt and serial port programming

Hi, folks ! Is there any serial port facilities in Qt ? If not, which crossplatform (desirable) libraries (for working with serial port and, maybe, with other I/O ports), do you recommend ? ...

Qt Creator - how to set application icon?

How do you set application icon for application made in QtCreator. Is there some easy way? ...

Is there any memory browser in QtCreator?

I can't find it. In the watcher window I can manually type memory addresses but I'd like to see bigger chunks of memory... If this doesn't exist, is there any other free memory mapper for the Mac (except for XCode and Eclipse)? Thanks, rui ...

Pyqt - QMenu dynamically populated and clicked

I need to be able to know what item I've clicked in a dynamically generated menu system. I only want to know what I've clicked on, even if it's simply a string representation. def populateShotInfoMenus(self): self.menuFilms = QMenu() films = self.getList() for film in films: menuItem_Film = self.menuFilms.addAction(...

How to create a bold, red text label in Qt?

I want to write a single, bold red line in my application using Qt. As far as I understand, I would create a QLabel, set its textFormat to rich text and give it a rich text string to display: QLabel *warning = new QLabel; warning->setTextFormat(Qt::RichText); warning->setText("{\\rtf1\\ansi\\ansicpg1252 {\\fonttbl\\f0\\fswiss\\fcharset...

How to use Intel C++ Compiler with Qt Creator

I am writing a program wherein i will need to do a stupendous number of numerical calculations. But since I am developing the front end of the program in Qt Creator, I have as yet been dealing with MinGW. As such, is there any way to integrate or use the Intel C++ Compiler with QT Creator? Currently using IC++ 11.0 and QtCreator 1.2.1...

How to draw a progress bar inside a list widget in Qt

I want to have a list of items that need to be processed in a QListWidget. Similar to Windows Media Player CD import, there should be a progress bar for every item in the list. Now there seems to be a way to do this by creating a regular progress bar, using QPixmap::grabWidget() to save its appearance in a QPixmap and then adding this Q...

Qt: Is is possible to get the QScriptEngine from QWebFrame?

I need to get access to the javascript QScriptEngine in a QWebFrame. Is that possible? Well, at least I think I need access to it. In response to a javascript call I need to allocate a new object, return it to javascript and hand ownership of the object to javascript so that it can be garbage collected. It looks like QScriptEngine::n...

QDockWidget - remove handle

Is there an easy way to remove the QDockWidget's resize handle? My dock widget can't be resized (the sizepolicy is fixed), so having the handle there is just redundant. ...

How to specify monospace fonts for cross platform Qt applications ?

Is there a platform independent way to specify a fixed width font for a Qt widget ? If I set the font to "Monospace" in Designer on Linux, it is not found on Windows and Arial is used instead. ...

Using QFileSystemModel in a QCompleter

How does one use QFileSystemModel in the context of a QCompleter? It looks like a better choice than QDirModel as it is non UI-blocking. The following snippet doesn't seem to do anything. QLineEdit* l = new QLineEdit ; QCompleter* c = new QCompleter ; QFileSystemModel* m = new QFileSystemModel ; m->setRootPath( "c:\\" ) ; c->setModel( m...

Persistence classes in Qt

Hi, I'm porting a medium-sized CRUD application from .Net to Qt and I'm looking for a pattern for creating persistence classes. In .Net I usually created abstract persistence class with basic methods (insert, update, delete, select) for example: public class DAOBase<T> { public T GetByPrimaryKey(object primaryKey) {...} public ...

Global variable in Qt, how to?

I'm using Qt and in the main method I need to declare an object that I need to use in all my other files. How can I access that object in the other files? (I need to make it global..) I'm use to iPhone development and there we have the appDelegate that you can use all over the application to reach objects you've declared in applicationD...

Qt signals and slots, threads, app.exec(), and related queries

[related to this question] I wrote this piece of code to understand how qt signals and slots work. I need someone to explain the behaviour, and to tell me if I'm right about my own conclusions. My program: connectionhandler.h #ifndef CONNECTIONHANDLER_H #define CONNECTIONHANDLER_H #include <QTcpServer> class ConnectionHandler : publ...

most effective row removal strategy for QStandardItemModel

Hi all, I have a QStandardItemModel with several 100,000 records of data, and a QSortFilterProxyModel on top of it for filtering and sorting capabilities. I want to remove a substantial number of records, say 100,000, based on the value of one of the columns. The current implementation iterates over the source model, tests for the valu...

Implement IP camera

Hi. We have a device that has an analog camera. We have a card that samples it and digitizes it. This is all done in directx. At this point in time, replacing hardware is not an option, but we need to code such that we can see this video feed real-time regardless of any hardware or underlying operating system changes occur in the future...

Qt4.5: Implicitly shared QImage: are methods like .bits() always copying (documentation unclarity)

I am writing a Qt application that has to handle big QImage s. QImage uses implicit sharing, which means it reference counts an internal data pointer. Whenever the refcount is > 1 the object counts as "shared" and any even only potentially data modifying call issues a deep copy of the image data. In short: I don't want deep copies to h...

Qt library destructor Question

Im new to the Qt library and i was going through the demonstrations. I came across this class without a destructor.... this is the cpp file http://doc.trolltech.com/4.5/demos-mainwindow-mainwindow-cpp.html and here is the .h file http://doc.trolltech.com/4.5/demos-mainwindow-mainwindow-h.html the constructor uses the new operator but ...