I am learning to program using Qt framework. When I writes some code have signals and slots involved, the events didn't seem to fire and the signals and slots didn't seem to work. It really me make me annoyed. Can you give me some cautions and warnnings about signals and slots in Qt?
slot declarations:
private slots:
void...
Hi,
I have a QGraphicsPolygonItem defined as:
myShape << QPointF(-50, -50) << QPointF(50, -50)
<< QPointF(50, 50) << QPointF(-50, 50)
<< QPointF(-50, -50);
mypolygon.setPolygon(myShape);
Its starting matrix is identity:
|---|---|---|
| 1 | 0 | 0 |
| 0 | 1 | 0 |
| 0 | 0 | 1 |
|---...
I am trying to build a Symbian (S60 5th ed.) application with Qt 4.7.0. My application contains a QWebView widget. In Qt 4.6.3 the web view was running JavaScript perfectly. However, once I upgraded to 4.7.0, JavaScript is no longer working, not even in the "anomaly" browser demo.
I've tried to set JavaScript explicitly, but in vain.
...
I'm a newbie to VTK and am starting to write a medical viewer. I've seen that VTK wraps into either Java or QT and was wondering if anyone has an opinion about which one works better. I'm much better at Java, and would be learning QT from scratch. However, I've read and noticed that getting VTK and Java to play nice can be problematic...
I decided after a bunch of headaches all morning, that using Qt Creator for my first Qt project would probably be better than MSVC (had too many issues compiling).
I am wondering though how I can add the .dlls and .libs I need for my external tools through Qt Creator. I found this post http://stackoverflow.com/questions/718447/adding-ex...
Here is the code:
#include <QtCore/QCoreApplication>
#include <QProcess>
#include <QProcessEnvironment>
int main(int argc, char *argv[])
{
QProcessEnvironment env;
// Environment variables required by CGI apps
env.insert("QUERY_STRING", url.encodedQuery());
env.insert("REQUEST_URI", url.toString());
env...
I'm using QImage.save to save an image of my OpenGL framebuffer to disk. If I just call save("plot.jpg"), I have no idea where the image ends up. It's not in the application directory. I can call save("/Users/wallacer/desktop/plot.jpg") to save the file on my desktop, but obviously that's no good for running on anyone else's machine. ...
I am currently trying to make the move from C# and break free from my platform boundaries by using Qt / C++.
I was using TagLibSharp in my old project, but I'm now trying to use the original C++ source found here:
http://developer.kde.org/~wheeler/taglib.html
I am in a world of hurt trying to compile this into my application. Most of ...
Hi!
I can't do a static build of Qt 4.7.0 for WinCE.
First I copy Qt 4.7.0 wince sources to C:\Qt\4.7.0_wince
Run a configure with params: -platform win32-msvc2008 -xplatform wincewm60professional-msvc2008. Then setcepath.bat for wincewm60professional-msvc2008 and then nmake. Everything was alright.
Then I need to do a static version ...
Hi.,
i am new QT. i used QTableView. Please see the picture.
http://i.imgur.com/BTtO7.png
in the image left side it's automatically putting row number. i noted in Red color. i need to remove the entire column. how to do that.
next my problem is, if i click any cell, only that cell selecting. i need to select entire row ,like i noted...
I am using stylesheets in QT to skin several buttons with images from the QT resource system:
QFrame#DialogButtonTitle_SaveAsNew
{
background-image: url(images:DialogButtonTitle_SaveAsNew.png);
}
This works great, but I would really like to write a warning to our logs if the image file could not be found (and the button is thus nake...
Hello,
I cannot understand so strange thing - now the compilation takes about 10 minutes! The application has only one (1) form and maybe 100 or 200 lines of user code. How can it be compiled for 10 minutes?
Help, please.
Thanks
Upd: Windows, debug, mingw32,
Qt 4.6.3
What else?
...
Hi
How do I read a FIFO/named pipe line by line from a C++/Qt Linux app?
Today I can open and read from a fifo from a Qt program,
but I can't get the program to read the data line by line.
Qt reads the entire file, meaning he waits until the "sender" closes his session.
Let's take a example with some shell commands to show what I w...
Hi,
I am using the following code for create a button. It is working fine. but I got the yellow rectangle at the left corner. Why? Please help me. Thanks in advance,
backButton = new QPushButton(tr("Back"));
connect(backButton, SIGNAL(clicked()), this, SLOT(showSearchResultPage()));
backButton->setStyleSheet(
...
Hi.,
i am using QTableView. it's working fine. but the problem is if i double click the cell then it's change into edit mode. i need to disable the edit option. How to do that. please help me to find the solution.
...
When the menu of a QTabWidget grows beyond its width, the default behaviour is to turn the tab menu into a horizontaly scrollable list. What I'd prefer is to wrap the menu round so you now have two rows of tabs. This style is used on some Windows dialogs. I can't find any way to do this though.
Is anyone aware of a trick or option to al...
Hi,
i want my application to wait indefinitely till a task gets completed in another thread.
How to perform this in Qt.
in windows we use waitforsingletonobject but is there any alternative to this. can i get some hints from you guys..
Thanks
...
I don't see this in the documentation anywhere, so it probably doesn't exist, but just in case:
I have a function that accepts as a parameter a vector of QImages. Each QImage was loaded from disk at some point and has not been edited--it is just read from. Ideally what I'd like to do is loop over all the QImages and output a list of the...
Hi.
I'm trying to create project structure like below
test/
test.pro
build/
build.pro
main.cpp
gui/
gui.pro
mainwindow.h
mainwindow.cpp
My test.pro looks like this:
TEMPLATE = subdirs
SUBDIRS = gui
CONFIG += ordered
SUBDIRS +=build
build.pro
TEMPLATE = app
QT += core gui
SOURCES += main.cpp
LIBS += -L../gui
gui.pro
TE...
Hello everyone!
I have a question about memory leaks in Qt.
I have a QMainWindow with 2 QPushButtons.
First button click signal:
m_label = new QLabel(this);
QPixmap pix(this->size());
QPainter painter;
painter.begin(&pix);
QImage img("1.png");
painter.drawPixmap(this->rect(), QPixmap::fromImage(img));
m_label->setPixmap(pix);
pain...