qt

Corrupted Qt Widgets on Windows Mobile

I am about to suggest Qt to mobile company that I am working . However, It turns out that Qt widgets, built for Desktop Applications, won't run on Windows Mobile 6.0 that well. They either unproportionally squeezed on the screen or extend it such that half of the application isn't seen. Here are the some screen shots: Application Windo...

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...

Closing new nonchild window in Qt

Hello, i'm trying to make 2 windows. 2nd should be called in 1st. I don't connect them child->parent. But when i called 2nd window and closed it 1st window closed too. What should i do? Both windows are inhereted from QWidget. C++ and Qt Sorry for my poor describe. I have a main window. Class inherited from QMainWindow. That i created...

Cross compile in Linux or Windows?

To create a .exe in Linux using Qt SDK, should I cross compile my application in Linux or cross compile my application in Windows? I am totally confused. :( Please help. ...

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 ...

Implement ManualResetEvent and AutoResetEvent

Hello, How to implement ManualResetEvent and AutoResetEvent in Qt? ...

Has someone used QSockeNotifier (Qt library) to read/write serial ports in Linux?

Hi all, I am currently linux API like sigio,sigaction etc to interface with serial ports in Linux. And for GUI I am using Qt 4.2. I know about 3rd party QextSerial but I would stay away from it. I also was tinkering with QSocketNotifier as an alternative. Can someone give a rough example to r/w from serial port using QSockeNotifier. ...

good combination of a c++ toolkit/library, cross platform db (not necessarily sql)

Hi what do you suggest as a cross platform "almost all encompassing" abstraction toolkit/library, not necessarily gui oriented? the project should at some point include an extremely minimal web server and a "db" of some sort (basically to have indexes/btrees, maybe relations, so a rdbms is desiderable but avoidable if necessarily, sql ...

install Mingw for SuSE Linux

Hello, please tell me, where do i get a link to install QT with MinGW cross compiler in Linux? Thank you ...

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...

qt qmake -tp vc to create visual studio project files

Hello, I am using QT Creater 1.0.0. and QT 4.5.0 LGPL license. I want to develop an application in QT that will run on a windows mobile 6.0. I have created a simple project in QT and I want create the visual project files so that I can compile on window mobile using visual studio and test using the emulator. I am using Visual Studio...

qt cannot open input file 'c:\Qt\qt\lib\qtmaind.lib'

Hello, I am using qt 4.5 I have created a project and I want to compile on visual studio 2008 for windows mobile 6.0 So I have created the project files doing this: D:\Projects\Phone_PDA\Phone_PDA>set QMAKESPEC=win32-msvc2008 D:\Projects\Phone_PDA\Phone_PDA>qmake -tp vc The VS project was created. However, when I try and compile I g...

How can I cross compile my Linux application to get a Windows executable in Linux?

I need to cross compile my QT application in Linux. I compiled my application from the QT SDK in Linux and it is working properly. How do I create an .exe for the same application in Linux. I have installed Mingw in Linux and qmake, but I dont know how to proceed with cross compiling. How do I link my QT with a cross compiler like MinGW ...

How can I remove files from a QtCreator project

Might be a very newbie question, but I can't find a way to remove files from my projects in QtCreator. Thanks! ...

Adding a QT GUI to a Dynamic Library

Greetings overflowers. I am trying to add a GUI to to an existing project. More specifically to a plugin that is loaded as a .so file (or when compiled on win32 a .dll) The project has its own threading implimentation already to deal with portability. I know that QT has its own cross platform threading model but it would be preferable ...

How to run SQLITE in a Windows Mobile Application developed with Qt

I am trying to run a simple SQLITE application on Windows Mobile developed with Qt. However I can't manage it, though I have developed other Windows Mobile apps with Qt. The fundamental error is Mobile Device/Emulator can't find SQLITE driver, as I get "Driver not found" error and the following code snippet proves it as well: #include <...

Reading from a file not line-by-line

Assigning a QTextStream to a QFile and reading it line-by-line is easy and works fine, but I wonder if the performance can be inreased by first storing the file in memory and then processing it line-by-line. Using FileMon from sysinternals, I've encountered that the file is read in chunks of 16KB and since the files I've to process are...