qt

How to draw triangler by using GraphicsView's QGraphicsItem class.

Hi guys i want to draw triangler object in graphicsview by using qgraphicsitem. But I dont know how to implement bounding rect according to triangler. ...

qstring white space

Hi, QString fe = "C:\\Program Files\\Autodesk\\Maya2008\\bin\\imconvert.exe "; This line gives a problem because of space between Program and Files. How is it possible to decode it so that it is treated as one complete string Brgds, kNish ...

Capture multiple screens desktop image using Qt4

Hi, i am writing a screen capture application in Qt4 with c++. I have a problem when tuning on dual screens. I am unable to get an image with the second screen. I tried a c# application and that will grab all the desktops in one image and i could extract from there each screen desktop image. Here is the c# code using System; using S...

How to set QFileDialog to set initially selected files?

I mean when the Dialog pop up, some files according to the filer are in selected state. Does QFileDialog has a way to do this? ...

error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64

I am trying to install Qt in my CentOS pc. while building the library I'm getting this error. /root/capture/qt-everywhere-opensource-src-4.7.0/bin/qmake: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64 /root/capture/qt-everywhere-opensource-src-4.7.0/bin/qmake: error while loading shared libraries: libs...

QT and Visual Studio 2010

Can any one provide me step by step how to get QT to work in VS2010? i have Visual Studio 2010 Ultimate Windows 7 Enterprise. qt-sdk-win-opensource-2010.05 qt-vs-addin-1.1.7 i tried executing this from vs command prompt : configure.exe -platform win32-msvc2008 -no-webkit -no-phonon -no-phonon-backend -no-script -no-scripttools -no...

Fast Updating of QPixmap from byte array

I'm working on a vision application and I need to have a "Live View" from the camera displayed on the screen using a QPixmap object. We will be updating the screen at 30frames/second on a continuous basis. My problem is that this application has to run on some 3-5 year old computers that, by todays standards, are slow. So what I would...

Qt widget based on QWidget

Hello, I try to create my own widget based in QWidget. In constructor of the class i have: Square(QWidget *parent = 0, const char *name = 0, WFlags fl = 0); Square::Square(QWidget *parent = 0, const char *name = 0, WFlags fl) : QWidget(parent, name, f) { if (!name) setName("Game"); reset(); ...

Python cross platform

If I create a gui for windows using python 2.6 and Qt, and then want to running in solaris or linux world. What do I need on both systems, I'm guessing 2.6 and Qt for both platforms. Is this correct or would there be a better solution. If wxpython, the same right? ...

What is object index of QTextFormat?

The function int QTextFormat::objectIndex () const returnes an object index. What is it? And what if I do the following: QTextBlockFormat bfmt; bfmt.setObjectIndex(0); What this code does? ADDED: Here there is a function void TextEdit::textStyle(int styleIndex). This function is for adding a list into QTextEdit, or making it ...

How to write my own download manager using c++?

hello i want to write my own download manager using c++(qt4) but i have no idea about that so please suggest me from where should i start if you know any good tutorial or link the please post it. i also want to implement the pause/resume and multiple download features also. i already know that there is a long list of download mana...

Qt soap error when deploying my application on Symbian^3 All in one sdk.

my application uses qtsoap-2.7_1-opensource and its running perfect on Nokia qt sdk on his simulator but when i running same application using different sdk like symbian 3 all in one then it exited automaticallty...please any one thanks in advance. ...

How to prevent PyQt objects from garbage collecting from different thread?

...

continuous line drawing in QT

Hi, I need to draw line continuously on the screen, output should be as it is in the video. Please check this link: http://www.youtube.com/watch?v=sYNIm210mJY. Please suggest me which is the best method to implement it. ...

How to encrypt/decrypt file contents using Qt?

Hi All, This question has been asked many times before by others, but somehow the answers made me more confused. In my Qt application (for symbian devices), I have a file with user details (Email ids n passwords) which I store in target device, so want to encrypt this data in the file to keep it secure. I don't need a super secure encr...

Qt Consuming WebService

Can any one provide me a simple example on how to consume a webservice using Qt C++ ? ...

Why is QHBoxLayout causing widgets to overlap?

I need to place several instances of a custom QPushButton subclass adjacent to one another. For some reason, the buttons overlap one another when painted. A simplified example of the problem is below. Here is the (incorrect) output: Here is the code: #include <QtGui> class MyButton : public QPushButton { public: explicit MyButton...

Qt4 Program Crashing Unless SDK Installed

I've written a Open Source program that I've released as GPL built using the Qt4 LGPL SDK. This program has the ability to search an optional Sqlite3 database for data. Here is what is making me lose my mind. I compile the program on the development machine. When I try to run it, I can errors about missing DLLs. I copy those dlls into t...

Qt QLayout inside QDesktopWidget

I want to do universal method to set position of my widget. All I wanna get it is set right coordinates for my widget wich must always be in right bottom corner of desktop. My widget can change his height (or maybe width) but it must have adjusted size by both ordinates... (too many words) My idea is using QDesktopWidget as basic widget...

QMake - how to copy a file to the output

I need to copy a file from my project to the output directory. I new to qmake so I can't figure out how to accomplish this. I'm compiling on Linux but in the future I'll compile it on Mac and Windows ...