qt4

Qt designer plugin (custom widget) in Eclipse integration

I have made custom widget plugin, which is recognized and visible in Qt designer, but Qt creator and Qt eclipse integration doesn't show it. Does anyone have ideas how to solve this problem? ...

Renaming DLLs on Windows

I am building an application on Windows with Visual Studio 2003. My application is linking to 3rd party lib (Qt). The lib is called qtcore4.lib and the dll qtcore4.dll. My application is a plugin to another Qt based application which uses different versions of the same qtcore4.dll. Unfortunately, I can not use the same version of Qt a...

Custom styles for custom widgets in QT

Does anybody have experience with custom styled, custom widgets in QT? (I am using Qt 4.5) The problems looks like this: I want to develop some custom controls that are not based entirely on existing drawing primitives and sub-controls. Since the entire application should be skinnable, I want to rely on custom styles, possible on style...

Threading issues in C++

I have asked this problem on many popular forums but no concrete response. My applciation uses serial communication to interface with external systems each having its own interface protocol. The data that is received from the systems is displayed on a GUI made in Qt 4.2.1. Structure of application is such that When app begins we have ...

Error while compiling in Qt (Ubuntu)

Hello, I am getting the following error while compiling a sample program in Qt 4.5 in Ubuntu OS. /usr/bin/ld: cannot find -lgthread-2.0 collect2: ld returned 1 exit status ...

Multiple Event Loops and Serial Communication Issues ?

Hi all, I have created a sample application from where separate thread is started to read and process data from serial port. QSocketNotifier is used for detecting whether data has arrived on the serial ports or not. I start an event loop using exec() statement in run function of thread. But while running the application only once the so...

What features in Qt do you like the most?

As for me, functions like QString::section and QRegExp bring Qt closer to scripting languages and that is very appreciated. For example, given a CSV file, in order to find out necessary columns we process the header as follows: int AmountInd = line.left(line.indexOf("Amount")).count(','); to get the index of that column. Then, for...

How should I use a QGraphicsScene with layouts and widgets

I'm creating some graphic data displaying widget in Qt4 and I was tempted to use the QGraphicsScene for it, create QGraphicsItems for the data items etc. However, I wanted to add some layer of controls (eg. scrollbars, zoom+other buttons - I want to make it in a similar style as eg. Google Maps, that is, the data would be displayed all ...

Problem with QSqlTableModel -- no automatic updates.

After setting up a table model in Qt 4.4 like this: QSqlTableModel *sqlmodel = new QSqlTableModel(); sqlmodel->setTable("Names"); sqlmodel->setEditStrategy(QSqlTableModel::OnFieldChange); sqlmodel->select(); sqlmodel->removeColumn(0); tableView->setModel(sqlmodel); tableView->show(); the content is displa...

Issues Serial Port Watch using threads with an event loop and QSocketNotifiers

Hi all, I asked this question yesterday since I wasn't receiving any data but strangely when I used wait in the destructor I started receveing notification from QSocketNotifier. The rest of the question is same. Can someone suggest something? I have created a sample application from where separate thread is started to read and process d...

scons backup/restore environment in cheker function

I have written a checker which checks for a single module of Qt4 library using Qt4 tool. I'm trying to save environment in the begining of the test and restore it in the end of the test but it doesn't works. Here is a simple SConstruct to reproduce this issue: def CheckQt4Module(context,module): context.Message("Checking for %s modu...

Linux sockets communicating with QTcpSockets in Qt 4

I am trying to communicate with TCP between a Qt program and a regular linux program. I have an existing linux client server program and I am trying to replace the server program with a Qt application. Here is the linux client code #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h>...

PyQt4 mac drawer positioning

I am using PyQt4 for an application I only plan on using on macs. So I wanted to make it look more like a mac application. To do so I am trying to incorporate sheets and drawers instead of spawning other windows. I have got a drawer to come up but it comes up on the left side of the application. Is there any way to make the drawer ...

QtCreator performance on Windows

I've finally managed to run the QtCreator debugger on Windows after struggling with the Comodo Firewall incompatibilities. I was hoping to switch from an older version of Qt and Visual C++ to the newest version of Qt and QtCreator, but the debugger performance is atrocious. I have created a simple GUI with one window that does nothing...

Qt->QGraphicsView->QGraphicsItem resizing.

I'm pretty new to QGraphicsView in Qt. As far as I can tell there is no built in way to resize a QGraphicsItem in a scene with a mouse. What I'm looking for is to be able to resize a QGraphicsRectItem by either dragging out the corners or the edges on screen. Is there a simple way to do that? Is there a library or a piece of code some...

wsdl client with Qt

hi..i've problem when create a wsdl client using Qt framework. wsdl file is from ejbca wsdl. my program is client for ejbca server and using wsdl to access ejbca services.but i don't know how to handle this. plz give me some suggestion to do... ...

How to force qmake not to create symbolic links to target when TEMPLATE=lib ?

I have a (partial) qmake project file like this: TEMPLATE=lib TARGET=whatever SOURCES=whatever.cpp HEADERS=whatever.h This will - atleast by default - create a library and few symbolic links like this: libwhatever.so -> libwhatever.so.0.1.0 libwhatever.so.0 -> libwhatever.so.0.1.0 libwhatever.so.0.1 -> libwhatever.so.0.1.0 libwhateve...

Adding a minimize button to a Qt dialog?

I have created a QDialog based app using Qt Creator and all is well other than the dialog has no minimize button. How can I add one? Is there a property in the designer that I can set? ...

TableView Search

I write a small database project for handling payroll records. These payroll records will be put into a tableview object for viewing. How can I search a particular record in a TableView ? Any idea, please help me. ...

Unable to open QT form (*.ui) files from Visual Studio

I am unable to open QT form file (*.ui) form visual studio 2008 QT project. It the following error " The file test.ui cannot be opened with Qt 4 form editor. Try converting the file using uic.exe " Anyone know about this problem.? I am using VS 2008 and QT 4.5.0 -Thanks for u r time. ...