How do I save a file with transparency to a JPEG file without Qt making the transparent color black?
I know JPEG doesn't support alpha, and the black is probably just a default "0" value for alpha, but black is a horrible default color.
It seems like this should be a simple operation, but all of the mask and alpha functions I've tried a...
How do I set an application's taskbar icon in PyQt4?
I have tried setWindowIcon, and it successfully sets the icon in the top-left of the main window, but it does not affect the icon shown in the Windows 7 taskbar -- the taskbar icon remains the default Python pyw icon. Here is my code:
from PyQt4 import QtGui
app = QtGui.QApplication...
I want to compile this application in command prompt (Windows):
include "QtGui/QApplication"
include "QtGui/QMainWindow"
class Form1 : public QMainWindow
{
Q_OBJECT
public:
Form1(QWidget *parent = 0, Qt::WFlags flags = 0);
~Form1();
};
Form1::Form1(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags)
{
...
I'm using Code::Blocks 8.02 and the mingw 5.1.6 compiler. I'm getting this error when I compile my Qt project:
C:\Documents and Settings\The
Fuzz\Desktop\GUI\App_interface.cpp|33|undefined
reference to `vtable for AddressBook'
File AddressBook.h:
#ifndef ADDRESSBOOK_H
#define ADDRESSBOOK_H
#include <QWidget>
class QLabel...
acctualy i want when i click a pushbutton then it will connect to another window. But i am unable to declare my own slot in Ui_example.h file.
so what i do?
...
Hello
I am using mfc to Qt migration and I am showing Qt dialogs in my Mfc app.
Is it Ok to deleteLater QWinWidget in its winEvent handler?
The thing is that I want all of my open Qt dialogs in My Mfc application
to be automatically deleted when the main mfc window is closed.
Since WM_DESTROY will be sent for all child windows ( and th...
I am writing a plugin for another application. I want to support the plugin on multiple platforms, so I am strongly considering using Qt.
The plugin needs to be able to show some basic GUI. The plugin interface does not in any way handle GUI - it is just a simple DLL/shared library specified with a C-header file.
Can I use Qt inside su...
Hello,
I have never worked with QThread in Qt, or with threads in general, so the topic is more then new to me. Still I have to use QThread's in order to avoid the blocking of my main application due to some heavy computations.
So I want to put my heavy computations in a thread and if they take too much time I want to kill the thread (...
Following thread code runs 2058 times, after that it crashes. Can somebody help me figure out why? The idea of the program is create some class in main thread, pass it to worker thread, thread fills needed data and pass data back to main thread. This example crashes after 2058 runs, however it should go indefinately. I've run it 20 times...
ok wtf this is what moc tells me when i try to moc one of my header files. im doing this through Qt 4.5.3 command prompt and it says this:
C:\Documents and Settings\The Fuzz\Desktop\GUI2>moc App_interface.h
/****************************************************************************
** Meta object code from reading C++ file 'App_in...
i have to run the following commands from Qt command prompt: 'qmake -project' then 'make' and this gives me the debug folder with the Moc file. this is strangely the only way my PC will generate the moc_.cpp file. So how can i automate the task of these commands so i dont have to use these commands again?
...
I want to display some QTextEdits over my main window at arbitrary locations. Below is my first attempt. It doesn't quite work. If I create the text edits before I show the window, the text edits appear, but if I create them after I have shown the window they don't appear. What's up with that? How can I get the ones created later to...
Hello,
I have the following tree structure of a library:
-1.axel
-2.trunk
-3.axel
-4.src
-3.knot
-4.axel
-5.QComplexInvariants
-QComplexInvariants.pro
-3.subdivix
-4.include
-3.realroot
-4.include
-3.linalg
-4.include
-3.shape
-4.include
In QComplexInvariants I have sev...
I have an S60 app which I am writing in Qt and which has a large number (several thousand) small audio files attached to it, each containing a clip of a spoken word. My app doesn't demand high fidelity reproduction of the sounds, but even at the lowest bit rate and in mono MP3 they average 6k each. That means my app may have a footprin...
Hello all,
We have a C++ Win32 application which spawns, using Qt's QProcess (undoubtedly a wrapper for CreateProcess()), a secondary 'slave' program.
Unfortunately, when debugging the system with Visual Studio 2008, the debugger does not autoamtically attach to the spawned process.
I know it's possible to programatically trigger a de...
In my Qt4 application I can't seem to hide certain options in the system Menu bar on OS X such as 'Services'. Any ideas?
...
hi all
I need to use some cryptography algorithms in my symbian QT project.
But I could not compile QCA for my symbian environment.
1-How I can links my libcrypto.lib which is openssl static library for symbian to my QT application?I cannot find any place for configuring my QT application to accept this library.
2-Is it possible to com...
Hi folks,
I know that i can use QSignalMapper to call a slot with different parameters based on connection. What i want to achieve is a little different.
We are using plugins in our application and different plugins are responsible for different types of objects. We are connecting multiple slots, each implemented in a different plugin,...
I want to create a tiny app which needs global shortcuts. So, I have downloaded the current version of libqxt (0.5.1) and opened as a project in Qt Creator.
Libqxt compiles without problems in this way, so I thought that adding this in the tab Dependencies of my project it would get added automatically in the build, like Eclipse does wi...
Here's what I've done:
Downloaded qwt-4.2.0-setup-qt230nc.exe from sourceforge
Unpack to C:\Program Files\Qwt
Go to Qt Command Prompt
Run msvc-qmake.bat.
Get the output.
Now the lib directory is created, but it's empty. Also tried opening VS project file, but it doesn't converse to VS2008, because there are no vcproj files. I also...