qt

Qt MDI app with OpenGL: how to grab a valid screenshot?

I have an MDI app written in Qt. Some of the subwindows include QGLWidgets, i.e., OpenGL contexts. The most salient of these use OpenGL vertex and fragment shaders to visualize their data. I need to programmatically capture a screenshot of the application's main window, including of course all the subwindows that happen to be visible. S...

QT vs. Delphi and Align possibilities

I admit I am totally new to QT so bare with me. I am used to develop in Delphi, but I have recently moved to developing in Python and with that PyQT (later I'll switch to PySide). Anyway, I'm trying to figure out if there's anything in QT that is equivalent to Delphi's Align property possibilities like alTop, alClient, alRight and so on?...

How to design Floating tool bar in Qt 4.5.2

How to make Floating tool bar in Qt, just like the top floating panel of Microsoft Windows RDP client, any code example? Regards ...

What exactly changed when QStandardItemModel itemChanged is signaled

There is signal in QStandardItemModel which is emitted when data of an item is changed. Usually we connect a handler for this signal and do all the work in the handler routine. Such handle routine only gets pointer to the item. Using this pointer it is possible to access the data of the item. However, we do not know what exactly has cha...

removing an adp profile from Qt Assistant

When I start assistant_adp -profile doc.adp I expect to see the new documentation referenced from that file. Instead Qt Assistant shows me the old documentation (stored in ~/.config/Trolltech/Assistant.conf) assistant_adp sports a -removeContentFile option, but I haven't been able to get it to work. I could mess with the Assistant.con...

QT on windows mobile

Hi friends How are QT applications developed for Windows mobiles ?? Is it worth to do ?? ...

WinForms or WPF or Qt for Windows GUI with C/C++ as backend

I am to develop an application on windows. I have never done that before ;-) I need to do some heavy audio calculation, which has to be written in C/C++. This part will be a room correction algorithm which currently takes about 10 seconds per channel to run in Matlab. It has to be written in C/C++, since it might be ported to a DSP late...

QT Application Performance vs. WinAPI/MFC/WTL/...

I'm considering writing a new Windows GUI app, where one of the requirements is that the app must be very responsive, quick to load, and have a light memory footprint. I've used WTL for previous apps I've built with this type of requirement, but as I use .NET all the time in my day job WTL is getting more and more painful to go back to....

What's the rationale behind the Qt way of naming classes?

I am wondering why Qt uses Q before every class name rather than putting everything in a namespace. Is there any particular reason, such as making the names easy to search for, or is it just about brand names? ...

Use QAction without adding to menu (or toolbar)

Hi everyone, I'm trying to develop an application with a very modular approach to commands and thought it would be nice, sind I'm using pyqt, to use QAction's to bind shortcuts to the commands. However, it seems that actions shortcuts only works when the action is visible in a menu or toolbar. Does anyone know a way to get this action t...

win32:libs undefined reference

I want to link a .lib in my Qt project and I get an error about an undefined reference to vhtIOConn::getDefault(vhtIOConn::DeviceType). I have already added the following specifications to the .pro file: ###################################################################### # Automatically generated by qmake (2.01a) vie 28. ago 12:48:1...

Qt UI for existing C++ project

I have already written a C++ program and I would like to write a GUI for it. I realize Qt is a wonderful tool, however, Qt has it's own classes, which make me quite confused. eg: instead of String, Qt has a class named QString.. I am wondering if I can mix C++ code and Qt code in C++? ...

QThread::wait() and QThread::finished()

Does QThread::wait() return (i.e., unblocks execution) after calling all the slots that were associated with QThread::finished() signal? Thanks in advance. ...

qt moc.exe not generating *.moc file

Hi, I'm trying to build the qtestlib/tutorial1 example, but the testqstring.moc file isn't being generated when I run nmake (I'm running QT 4.5.2 on Windows XP SP3). I copied testqstring.cpp from the tutorial directory to my build directory (C:\sandboxes\testqstring) and from the QT command prompt ran vsvars32.bat file from my MS Visual ...

QCalendarWidget as "Pop-up", not as new Window?

Hi there. I want to create a Settings-Widget, where I can choose a Date. Because it isn't nice to create 3 QLineEdits to call the QDate-Constructor with QDate(int year, int month, int day), I thought it would be better, if you can push a "show calendar"-Button for example, where you can choose the date. But I don't want to show this cal...

Virtual keyboard for QtWebKit based browser or how can I get the currently focused text field?

Hello everyone, I'm working on implementing a virtual keyboard for a QtWebKit based browser. I'm having a lot of difficulty understanding how QtWebKit paints the controls within the actual page. Initially I thought they were QLineEdit instances, but they are not. Diving into implementation it appears that the glue code between Qt and Web...

Protect private key in Qt application

I have a Qt application written in C++ that uses a SSL-connection (QSslSocket) with another application for extra security. However, the application has a private key embedded in it. With applications like Process Explorer it's really easy to fish out the private key. (Properties of file -> Strings) Security is not very important for m...

Developing for Linux

Hello Guys, I want to develop multimedia encoder for Linux. I want to make use of ready command line codecs like ffmpeg. I want to build nice GUI for that & pass arguments to command line encoders. I am thinking to use Qt. (Is it possible?) I don't know anything about Linux programming, but I have been an Ubuntu user for 8 months. P...

Where can I store a QAction(Group) ID?

I see that QButtonGroups let you throw in an integer when you do buttonGroup->addButton and then you can access this via the buttonClicked signal. This is handy for identifying which of of the buttons in the group was clicked. Why isn't there something similar for QActionGroups? QActionGroups have a selected signal, which will pass you b...

Custom/Owner draw control in PyQt?

I am learning PyQt and wonder if one can create custom/owner draw control like one show in the figure below: The search box has magnifier icon on its right border. Is this kind of thing possible with PyQt? Thanks! ...