I have Qt installed + Qt Eclipse Integration + MinGW but I can't seem to find a way to build a new Qt GUI project.
I'm getting the following error:
Error launching builder (mingw32-make debug )
(Cannot run program "mingw32-make": Launching failed)
I've updated the Path variable and added all I can think about that can be related and n...
I'm pretty new to QGraphicsView in Qt.
As far as I can tell there is no built in way to resize a QGraphicsItem in a scene with a mouse.
What I'm looking for is to be able to resize a QGraphicsRectItem by either dragging out the corners or the edges on screen.
Is there a simple way to do that? Is there a library or a piece of code some...
I have a XSLT 1.0 file to transform a XML file using XSLT 1.0. It works fine with IE 6.0, Firefox 3.0.11. However, PHP 5.2.6 XSL XSLTProcessor (providing XSLT 1.0) and Qt C++ QXmlQuery (providing only XSLT 2.0) give blank output.
I'm thinking of 2 ways:
Convert it to XSLT 2.0
Extract Firefox part to parse.
I prefer the 1st one. Plea...
Is it possible to set up QtCreator to treat .d files as C sources?
...
The following snippet of code doesn't seem to affect the system clipboard at all:
clipboard = QtGui.QApplication.clipboard()
clipboard.setText(text)
According to the Qt documentation, this is how you copy text to clipboard,
Why isn't it working?
Googling turned this up.
It suggests adding this after the above code:
event = QtCore...
I have a (partial) qmake project file like this:
TEMPLATE=lib
TARGET=whatever
SOURCES=whatever.cpp
HEADERS=whatever.h
This will - atleast by default - create a library and few symbolic links like this:
libwhatever.so -> libwhatever.so.0.1.0
libwhatever.so.0 -> libwhatever.so.0.1.0
libwhatever.so.0.1 -> libwhatever.so.0.1.0
libwhateve...
I have a QTreeWidget with several Columns; I add QTreeWidgetItems to it. I try to make the second column contain a numerical value for each Item so I can sort the items by this value
QTreeWidgetItem has a method called setData(int column, int role, QVariant(data))
I cannot find any documentation on what this role argument is. All I kn...
Hello,
I am having a QHash.
I use the following expression,to check whether a value is there in the QHash::keys() or not.
//programme
QHash samplehash;
QString value = "somevalue";
if(samplehash.contains(value)) // Condition - 1
{
//some code
}
Sometimes the above conditions matches,sometimes not for the same letters of different case....
Hello, i'm trying to hide window after its startup.
I have own window-class wich is inherited from QMainWindow.
I rewrited showEvent like this:
void showEvent (QShowEvent *evt)
{
if (firstShow)
{
hide();
firstShow = false;
}
else
{
QMainWindow::showEvent(evt);
}
}
But it doesn't work. firstShow is a ...
Whenever I set maximized the Windows Mobile applications by code that I developed with Qt , their titlebar disappear and there remains only Windows Mobile's default Title Bar. However, whenever I click on that X button, Application won't get closed; instead it keeps running behind.
After a few Google searches, I realized that this is...
Hello. Here is link where i got a code for web-page content fetching. But i have a trouble: i got text in wrong encoding. Could i correct it? Thanks.
EDIT:
I'm trying to get data from page:
http://ru.wiktionary.org/wiki/example
And got:
EDIT2:
I just save all data to the html-file and show it in QWebView.
...
I have created a QDialog based app using Qt Creator and all is well other than the dialog has no minimize button. How can I add one? Is there a property in the designer that I can set?
...
Hi all,
Just as a hobby, I want to capture realtime video. The source of video for a start would be a web camera. I have one from logitech. What I am trying to do is make a custom window with Real time video display as one part and other miscellaneous widgets. As a starting point I looked in Qt and phonon did sound promising. But instal...
I've developed a Qt application which contains a TCP server and such. I'm now trying to make Ubuntu packages and let the application automatically start on startup.
The application needs to be running even if nobody is logged in, which means a daemon started via a script in /etc/init.d/
I tried simply running the application on start a...
I have neglected my programming skills since i left school and now i want to start a few things that are running around in my head. Qt would be the toolkit for me to use but i am undecided if i should use Python (looks to me like the easier to learn with a few general ideas about programming) or C++ (the thing to use with Qt).
In my scho...
Hello,
I am using Qt webkit Jambi API's to convert HTML to PDF.
My target is to create a jar for above conversion so that it could be used in a multithreading environment, but since QWebPage and QWebframe (QT webkit) are GUI classes, therefore the jar classes cannot be initialized from child threads.
So i am stuck as i don't know how ...
I am using the following code to determine if I can write to a specific directory using QFileInfo:
QFileInfo dinfo(dirname);
if (dinfo.exists())
valid = dinfo.isWritable()
Unfortunately, when I pass in the path of the current user's desktop on Vista 64:
C:\Users\USERNAME\Desktop
QFileInfo::isWritable() returns false. However, if ...
I want to read the registry to find the current PowerPoint version.
However this just returns Zero:
QSettings settings("HKEY_CLASSES_ROOT\PowerPoint.Application\CurrVer",
QSettings::NativeFormat);
QString sReturnedValue = settings.value( "(Default)", "0" ).toString();
Any suggestions as to how I get the value ...
I'm working on a multi form Ruby-Qt program using, and I'm having a problem with controlling secondary windows from the primary one.
How can i disable the primary window when any secondary one is open, also how to take a secondary window output to use it on the primary one, and finally, sorry this is a silly one, what is the appropriate ...
I have a list of strings and want to create a menu entry for each of those strings. When the user clicks on one of the entries, always the same function shall be called with the string as an argument. After some trying and research I came up with something like this:
import sys
from PyQt4 import QtGui, QtCore
class MainWindow(QtGui.QMa...