I have question about removing element from QList.
"myclass.h":
class node2D : public QObject
{
Q_OBJECT
public:
node2D(){++s_NCount;};
~node2D(){--s_NCount;};
int checkCount(){return s_NCount;};
private:
static int s_NCount;
};
"myclass.cpp":
int node2D::s_NCount = 0;
"main.cpp":
void main()
{
int i,ma...
how can i get the image size when i load image ( width, height )
...
Is it possible to know what application is in focus using Qt ?
...
Hi,
I am using Qt4.5.2 on Linux. I have a simple QTableWidget, in which a column displays dates in a human-friendly format. Unfortunately "human-friendly dates" are not easy to sort correctly. So, in the QTableWidget I keep a hidden column with the UNIX timestamp corresponding to that date.
I am trying to make sure that, whenever a req...
hi..
i want to know how to add menu to a widget, which is derived from Qwidget in QT symbian,
i know how to add menu to window derived from Qwindow, but i am not getting for widget
derived from Qwidget
pls help me..
Thanks
...
Hi..
I want to make a customized list view, in that I will add items dynamically,
I have written code for the same, but it's giving me some problems,
code is compiling fine but it will give some linker error,
I tried the same code by keeping different header files, it runs well, but i am not getting control to my delegate class only.
...
Hello,
I have downloaded QT SDK LGLP (Creator + libraries) 4.6 and I am having problems compiling projects. After install I have added C:\Qt\2010.02\qt;C:\Qt\2010.02\qt\bin to PATH and added QTDIR env varaible containing C:\Qt\2010.02\qt, the I run "configure -platform win32-g++" to compile it. Everything went good.
I the tried to use ...
I have a small program in PyQt4 and I want to compile the program into an Exe. I am using py2exe to do that. I can successfully set icon in the windows title bar using the following code, but when i compile it into exe the icon is lost and i see the default windows application. here is my program:
import sys
from PyQt4 import QtGui
cl...
I'm using the Qt library, creating QImages.
I'm able to use this constructor:
QImage image("example.jpg");
But I'm having trouble with this static function:
char buffer[sizeOfFile];
ifstream inFile("example.jpg");
inFile.read(buffer, sizeOfFile);
QImage image = QImage::fromData(buffer); // error here
// but there's nothing wrong wit...
HI..
i want to add elements dynamically to listview in QT for symbian OS, i have set of delegate methods associated with listview.
if i add elements statically, the control comes to delegate methods, and view is perfect.
but if i add dynamically, control is not at all coming to delegate methods.
i don't no how to do it. ill place her...
Can somebody point me to sites with not supported by Qt image format plugins (reading/writing). XCF and PSD for example.
...
I have problem with keeping Qt::Tool window visible when the application becomes inactive. The application is running and there are 2 windows opened - main and additional with Qt::Tool flag set. When I open/switch to other app e.g Konosole the main window remains visible but second disappears - so if I want to e.g. rewrite some data from...
Hi..
is there any way to implement the control mentioned in the following link in QT.
http://wiki.forum.nokia.com/index.php/QtDynamicSettingList
pls suggest me how to implement the same.
Thanks
...
I have a qthread that uses a udp socket to write and read datagrams in a loop. the QUDPSocket is created in the mainthread. How do I handle QObjects that I will use in both the QThread and mainthread. Also is it ok to have the UDP socket in the mainthread and use it in the qthread?
...
Hi,
I am new to QT. I have created object class QNetworkAccessManager main window as parent. Also registered to SIGNAL finished. It is working fine.
But I want to know in which thread it will run. Will it block the main thread. If i need to perform sequence of get operation how should I need to write the code.
Please give me some sample...
I'm using Qt4 and I have a QTableView which displays data using a custom model. I'd like to have two rows in the table header, ideally with some of the cells in the first row spanning multiple columns. Is this possible?
...
Hi!
I have main.cpp in c:\test folder and do the following:
qmake -project
qmake -tp vc test.pro
The answer is:
WARNING: Unable to generate output for: C:/test//Makefile.Debug [TEMPLATE vcapp]
WARNING: Unable to generate output for: C:/test//Makefile.Release [TEMPLATE vcapp]
But, I don't need make files. I need .vcproj!
Environme...
I am using QNetworkManager to fetch files from a server, however what I cannot figure out is if the files are compressed during the transfer with the standard gzip compression and if not how to get them to download compressed.
How would I go about checking?
...
Hi,
I have installed Qt and Qt for VS plugin. Everything works fine, UI applications compile and run that's ok, but connecting signals and slots doesn't. I have Q_OBJECT in my class and for connecting I am using this code in constructor:
connect(ui.mainTableView, SIGNAL(activated(const QModelIndex &)),
this, SLOT(showDetail(con...
Hi..
i did progress bar in QT, i used both in emulator and mobile..
the infinite progress bar in appearing but its not getting animated.. (infinite progress is not coming)
here is the code which i hv written
QApplication a(argc, argv);
QProgressDialog *dialog = new QProgressDialog();
dialog->setMinimum(0);
dialog->setMaximum(0);
di...