How to set image on QPushButton
I want to set images on QpushButton,and size of QPushButton depend upon size of image. I am able to do this when using QLAbel,but not with QPushButton. so,if anyone has any solution then plz..help me out. ...
I want to set images on QpushButton,and size of QPushButton depend upon size of image. I am able to do this when using QLAbel,but not with QPushButton. so,if anyone has any solution then plz..help me out. ...
Hi there I have a QT app, running 2 more threads. Inside the threads I use the qrand function to generate a random number. The following is the code used to get the number, where m_fluctuations max is a double. int fluctuate = qrand() % (int)(m_FluctuationMax * 100); I tried adding the following code in the main thread, and also in...
I'm creating a Qt Symbian application and need to connect to internet. In some way I need to let the user choose a connection ONCE when the app starts or use the DEFAULT connection if that is enabled. Before I just used qt_SetDefaultIap() to set the connection on start. It worked perfect but now I need to use QtMobility instead. I have ...
I am using Qt 4.6.3 with MinGW on Windows to build Qt apps and now need to add a COM interface to my application. I enabled ActiveQt but was getting post-link errors because I was missing a copy of the MIDL compiler. I downloaded a copy of the latest MS Windows SDK, which includes MIDL, but now MIDL complains it cannot find cl.exe. Th...
Trying to dive into Qt big time but haven't done a large project with it yet. Currently using Python, but I've been thinking -- which is really the better language to use in terms of programmer productivity? In most comparisons between the languages, Python is the obvious answer, because you don't have to mess with memory management and...
In Qt Source files, there are two versions of header files, such as: qxmlstream.h qxmlstream_p.h Why are there _p.h files? ...
Hi, I recently got a dll that has been implemented by others. I have to use it in my application. In the header file of their class they have the function declaration void func1() throw (CCustomException); Now when i compile it am getting the warning, C++ exception specification ignored except to indicate a function is not _...
i got this main; #include <QtGui> #include <iostream> using namespace std; #include "tray.h" void main(int argc, char *argv[]) { QApplication app(argc, argv); Tray iets; app.exec(); } when i open in tray something like; QFileDialog *dialog = new QFileDialog; QString dir; QString test = dialog->getOpenFileName(NULL, NU...
Im developing simple html editor and i like to be able to drap and drop from abutton that for example represent html text line and in the Qwebkit the html text line will be created does Qt support such action ? how should i approach such thing ? ...
I'm trying to make a serial connection to an Arduino Diecimila board with QextSerialPort. My application hangs though everytime I call port->open(). The reason I think this is happening is because the Arduino board resets itself everytime a serial connection to it is made. There's a way of not making the board reset described here, but I...
I realize specific questions like this aren't great, but I've spent several days trying to puzzle this out. Hopefully someone here can help. This python code using PyQt4 causes a segmentation fault: data = """<?xml version="1.0" ?> <svg height="1000" width="2000"> <text>blah</text> </svg>""" svg = QSv...
Is there a signal for when an entire row in the QTableWidget has been selected by pressing the buttons that are stacked on the left? I would like that to enable some functionality, but am not sure how? Thank you in advance! ...
Hi, I am trying to move a picture slowly from one position to another in QGraphicsScene. So I tried to use sleep, after that much of milli seconds I tried "setPos". But is not doing as I thought. Some body please help me ...
sys info : win xp SP3 , Microsoft Visual Studio 2008 Version 9.0.21022.8 RTM Microsoft .NET Framework Version 3.5 SP1 Qt Add-in 1.1.5 I installed Qt 4.6.3 from the site http://qt.nokia.com/downloads/windows-cpp-vs2008. Then I added the Add-in Qt 1.1.5 and configured the PATH variable. When I open a new QT project , default example wo...
I am new on QT an I try to print out from QTableView How can I do this? Thank a lot ...
I have been struggling to enable autocompletion on Eclipse (mac) for Qt classes. I added /Library/Frameworks/QtCore (and QtGui) to the C++ Path and Symbols tab on the preferences dialog but for some reason although it can find the class names it refuses to autocomplete the class methods and member attributes. Tried to use both INCLUDE an...
Hello, I have an application, which has a (Qt C++) singleton logger class. The GetInstance() implementation is: if(m_Instance == NULL) { try { m_Instance = new Logger(); } catch(...){} } return m_Instance; Now I have following macro in the .h file: "#define LOG Logger::Instance()->Log" Everything is fine as l...
Hi All, I am working on the application whete I want to pass on the key strokes to a remote application. all key strokes I've done should get pass on to my remote application. The UI of this application is in Qt. all works fine if I remotely write any thing on TextEdit or any other mac native application but when I try to pass Capital l...
Hello, Currently I'm using singleton pattern for certain global objects in my application (Qt application for Symbian environment). However, because of some problems (http://stackoverflow.com/questions/3147375/c-checking-singleton-pointers/3147806#3147806) it looks like that I have to change the logic. I have 3 classes (logger, setting...
We wish to make a desktop application that searches a locally packaged text database that will be a few GB in size. We are thinking of using lucene. So basically the user will search for a few words and the local lucene database will give back a result. However, we want to prevent the user from taking a full text dump of the lucene inde...