qt

QT QImage pixel manipulation problems

Hi. I'm currently in the process of writing a steganography application with QT. I am trying to hide my message bits in the least significant bit of the blue colour of the pixel From debugging I can tell that this section is working as it should. However after hiding my bits in the message I then save the image and then reopen it. Thi...

How to design a linear GUI program

I'm making a simple Qt application. It has 4 screens/pages: Start import Select folder to import images to Accept or reject each image in folder, and when no images left: "No images left" and an OK button. I can't figure out the best way to implement this. I started off with a QWidget, but this quickly got unmanageable. Is a QWizard...

Building Opensource QT for Visual Studio 2005/2008

Does anyone have instructions on building the opensource version of QT? Now that the repository is opened up, I'm trying to build for VS2008 but I'm getting errors when it tries to build qmake. I found the question http://stackoverflow.com/questions/74521/im-looking-to-use-visual-studio-to-write-and-compile-using-the-open-source-versi b...

how can I have more than a UI for a QMainWindow?

I would like to have a QMainWindow that can change it's look at runtime, i.e when a user clicks a button. Besides keeping references to different UI classes generated by the QtDesigner, is there another way of doing that? Maybe by storing each UI in a layout ? What do you think ? ...

How do I fix my application from leaking when using Qt 4.5?

Without any changes to my code except building against Qt 4.5 I get the following warning message when I run my application: *** _NSAutoreleaseNoPool(): Object 0x50a1b0 of class NSCFNumber autoreleased with no pool in place - just leaking I am not using any Objective-C in my code but Qt 4.5 is using a new Cocoa based back end instead ...

Qt: how to set main window's initial position?

I think the normally window manager determines the initial position of the QMainWindow position on the desk top. I want to set the initial position myself. How is this done with Qt on Windows? ...

QAbstractItemModel.parent(), why?

I'm a (Py)Qt newbie, porting C# GUI code to Qt for a couple of days now. One question that I keep asking myself is why are QAbstractItemModel subclasses required to supply a parent() method, and why are they required to supply, in the resulting QModelIndex, the row of a child in the parent? This requirement forces me to add another laye...

Redirect barcode scanner input to specific widget in linux

Hi: I have a Symbol LS2208 barcode scanner and works OK in my linux box (Kubuntu 8.10 Intrepid Ibex). Whenever you scan a barcode the scanner (connected to an USB port) sends the reading to wherever the text caret is. I would like to redirect all the readings from the scanner to an specific widget in my application (i.e. a text edit con...

is there a way to combine Qt-Creator + Boost Library?

Hi, I was wondering if there was a way to use the boost library in Qt-creator (the IDE version of Qt). Thanks, A. ...

How to create a vcproj with qmake such that its filters reflect the directory structure?

Hi, I use qmake (Qt 4.5.1) to create my vcproj files. I would like to create customized filters for the output vcproj, such that not every *.h file ends up in the "Header Files" filter, *.cpp in "Source Files" etc. For example, a project containing the files foo\foo.h foo\foo.cpp bar\bar.h bar\bar.cpp should have a vcproj file with ...

Is Qt Visual Studio add-in a subset of Qt Visual Studio integration?

Qt software recently released Qt Visual Studio Add-in. Does anybody know, is it a subset of Visual Studio Integration, or is there included something new? Anyone tried both? ...

Embed external application under Windows

hello, I have a Windows desktop application that I want to add some functionality to. Unfortunately the source code is not available, but it has a COM API. So, my desire is to embed this application in my own window (with menus, toolbar, etc) and link events through the COM API. How do you suggest I embed one application within anoth...

Should Qt target the HyperSpace?

As you may already know, Phoenix is developing an alternative computing environment based on top of its BIOS, called HyperSpace. According to its designers it should run "a collection of commonly-used browser-enabled applications designed to make the Internet browsing experience simple, fast and secure". Although Phoenix has declared in...

Port Delphi to C++ gradually

Hi I have a large application written in Delphi. I want to renew it, starting with the user interface. I thought about using the new QT. During the process of renewing it, I want to change to C++ as the programming language. Is there a way to gradually rewrite the application (starting with the UI) to change to C++? Thank you for your ...

Is porting qt to another OS as simple as this?

The article Porting Qt for Embedded Linux to Another Operating System lists five things you have to do to port Qt for Embedded Linux to another OS. From the article: There are several issues to be aware of if you plan to do your own port to another operating system. In particular you must resolve Qt for Embedded Linux's shared memory...

QTCreator's integrated form editor won't load custom widget plugins (Designer does)

Trying to use the form editor that is integrated into QTCreator, but even when I place my plugin into QtCreator.app/Contents/MacOS/designer it doesn't show up. The same dylib file does work with the standalone designer app, though. QTCreator version info: QTCreator 1.1.0 (Based on QT Version 4.5.1) Designer version info: Version 4.5.1 ...

How can I view programmatically what resources Qt thinks it has?

Even though the title says it all, I would like to be able to enumerate the paths to the resources Qt has, for example : :/new/prefix/blabla.jpg ...

Print trailing zeros in a QString

I am using Qt and want to print a data value (double) in a label; however, the trailing zeros are lopped off. I know in C I can use printf("%0.1f", data) to preserve the trailing zeros. I looked at QString's arg function but that only allows the overall field width to be set. setNum and number each allow the precision to be set but tha...

Enabling JPEG support for QImage in py2exe-compiled Python scripts?

Hello, I'm trying to use a JPEG image in a QImage object from a Python script, with PyQt4. The script itself works perfectly, the image loads and can be manipulated and rendered and all. However, when I try to "compile" (compyle?) this script with py2exe, everything works but the JPEG image. Replacing it with a PNG equivalent works, but...

How could I use the QColorDialog inside another widget not as a separate dialog?

I would like to use QColorDialog not as a dialog window but as a widget which I could insert into a layout. (More specifically as a custom sub menu in a context menu) I looked into the QColorDialog sourcecode, and I could probably copy over a part of the internal implementation of the QColorDialog to achieve this, but is there a cleaner...