qt

Custom QAbstractGraphicsShapeItem very slow in Qt Jambi

I try to implement an own QAbstractGraphicsShapeItem in Qt Jambi (4.5) but as soon as I implement a custom class (rather than use e.g. QGraphicsEllipseItem) the rendering speed drops by about on order of magnitude. If looked in the original Code of QGraphicsEllipseItem and it seems to do basicly the same. class Circle extends QAbstractG...

QtOpenCl make errors. Please help.

So I downloaded the ATI Stream SDK. I don't have a gpu now so I use the '-device cpu' and got the programs/examples in the OpenCl directory working by adding the directory to LD_LIBRARY_PATH etc. Now the problem is when installing QtOpenCl. configure script gives me: skkard@skkard-desktop:~/Applications/qt-labs-opencl$ ./configure Th...

Device Clipping in Qwt

Hey everyone, I was working in qwt, and noticed I was setting device clipping to false. Does anyone know what device clipping is? I couldnt find anything about it really in their documentation. Thanks. ...

How do I determine the height of a QTextDocument?

Given a specific width, I want to find out the height of a QTextDocument. In other words, if the QTextEdit that contains the QTextDocument is w wide, what is its minimum height h in order to fully display the document without the need for scrollbars? ...

How to determine the number of charecter will fit to screen in Qt

Hi, how to determine the number of character of particular font will fit to screen. how to implement it. Thanks ...

Events with QGraphicsItemGroup

In my application I want to use QGraphicsItemGroup for grouping items into one item. I played with it a little and not sure using it because when I want to catch events, events are merged together but I want to handle specific event with specific child. How can I achieve this? ...

Qt - image-link

How to place an image on a QWidget that will open a browser and go to Google when you click on the picture? ...

Qt - How to get the sidebar in MainWindow

I amk new to qt. I tried to create a window with a widget. The widget contains a picture(a chess board). Now, If I tried to show the window it is showing a part of that picture. Here the code #include<QApplication> #include<QMainWindow> #include<QWidget> #include<QMenu> #include<QMenuBar> #include<QPainter> #include<QFrame> #include<QHB...

Linkable reporting library for Qt, with editor or easy markup

Is there a reporting library which can be linked with a Qt application to generate and print invoices (from within my own application, no seperate tool). The invoices are needed to print instantly, so I have the following requirements: pipe data to be printed into the reporting library choose from a predefined reporting template (creat...

Best C# bindings for Qt?

I've written a game in C# with SDL.NET and OpenGL. I want to add a menu to it, for which I need Qt. What bindings do you recommend for Qt in C#? Qyoto? (apparently it's still unstable in Windows.) qt4dotnet? other? Requirements: fast should just work and be polished - i.e. no weird problems at every step integration with the builds...

How to install the Qt mobility ?

Hi, i have installed Qt 4.6.2 and developing the application for symbian. Now i want use Qt mobility API for accessing the contacts.. how can i install the Qt mobility and acces the API.. my build environment is windows XP :) Thanks ...

Building 64bit Qt on 32bit Xp computer

I'm trying to build Qt in a shared 64 bit mode on my 32bit XP system. I can configure the QMake and start the 64bit build. The problem is that when the build starts, the first thing that happens in that the process builds ui, moc and rcc utility compilers in 64 bit mode, then tries to run them on my 32bit machine. Does anyone know h...

How to create a new File in Qt

Hello friends, I am a Qt beginner and just got stuck with the problem. I am looking for a file SomePath/NewDirectoryA/NewFile.kml ( NewFile.kml will be the only file in NewDirectoryA, having this directory just to maintain semantics in the project ). If SomePath/NewDirectoryA/NewFile.kml exists then I will use it in my code and If it d...

Set global position for a QLabel

Hi I'm trying to display a QLabel (without parent) at a fixed position using PyQt. The QLabel functions as a graphic that appears only for a moment, it's appears in the middle of the screen by default but I can't find how to move its position. Any suggestion?? updated: This is my code, maybe is a problem in the way I'm doing this: ...

QT, LGPL, Commercial closed-source application

We have a commercial windows application making use of QT. I'll be very simplistic in my description as I must have a clear answer. At compile time we use QT *.LIB files We have a result of our compilation is an *.EXE file, we wrap into an installer and ship to clients. This *.EXE files depends on *.DLL files in QT. at runtime the *....

Why is QProcess converting the '=' in my arguments to spaces

I've run into a weird error with a Qt program running on Windows. The program uses QProcess to spawn a child process wit two arguments. The program and arguments passed to the QProcess::start() method are of the form: "batchfile.bat" "--option1=some_value" "--option2=some_other_value\with_a\path" For some reason by the time those op...

kdevelop intellisense

How can I enable the intellisence in KDevelop using C++ and QT? ...

How set opacity on QGraphicsItem

Hello, i have a inherited from QGraphicsScene and QGraphicsItem to create my own classes. I use Qt 4.6. I want to set a specific opacity on each items of my scene. I use setOpacity : setOpacity method, but its not the result i hope. I want to have for example one item opaque and an other transparent (to see the desktop, or the other ap...

Execute a PyQt app from an acpi event in linux

Hi, I want to use a PyQt application to display an image when some acpi event is triggered under linux. I already setting up the configuration for the event and the python scrip is executed when the event is triggered, but when program reach the creation of the QApplication app = QApplication(sys.argv) it stops without error. I tri...

How to pass a function to a function?

Suppose I have a class with 2 static functions: class CommandHandler { public: static void command_one(Item); static void command_two(Item); }; I have a DRY problem where I have 2 functions that have the exact same code for every single line, except for the function that it calls: void CommandOne_User() { // some code A Comm...