Hi.
I'm working on a kiosk web browser using Qt and PyQt4. QWebView seems to work quite well except for one quirk.
If a URL fails to load for any reason, I want to redirect the user to a custom error page. I've done this using the loadFinished() signal to check the result, and change the URL to the custom page if necessary using QWebVi...
Hi all,
I have a Qt application that uses OpenCV for image processing.
Everything was working fine with OpenCV 1.0 but when I upgraded to
OpenCV 2.0 it started crashing.
I noticed that it only crashes whenever OpenCV functions are called
inside Qt slots.
For instance, the following slot:
void TestClass::on_testButton_clicked() {
I...
Hello,
I've a PyQt 4 installed (I can't find PyQt 3 for Windows) and I would like to open a QtDesigner ui file which has been created with QtDesigner 3.3.
When I open this file I've the following message:
Please use uic3 -convert to convert to Qt4
Unfortunately, I don't see the uic3 tool in the bin folder of my install.
Does anybody...
Hi..
i have a window in QT, on that i am drawing a picture. now i want to place the progressbar over it.
how can i do that?..
steps i am following to do
1) Create a window,
2)draw picture in paint event of window
3)then create QGridLayout layout, add your window
4) Display over it.
suppose i want to add progress bar, over a portion...
I have a shared library (with no QT dependency) [library B] that links to another shared library (with no QT dependence as well) [library A].
I am using Qmake and QT Creator 1.3. The problem is that when I build library B and run ldd on the executable, it is being linked to QtCore and QtGui, both of which are pulling in lots of unrequir...
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...
Using Qt stylesheets, is it possible to set a different background colour for each tab in a QTabBar that has 4 or more tabs?
My Qt application has 6 tabs underneath the menu bar. I'd like to change their background colours to 6 different colours using stylesheets.
2 issues appear to be standing in my way:
I can only style the "first"...
how can i get the image size when i load image ( width, height )
...
I have a QApplication that, depending on command line parameters, sometimes doesn't actually has a GUI window, but just runs without GUI. In this case, I want to shut it down gracefully if CTRL-C was hit. Basically my code looks like this:
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
... // parse command ...
OK, I'm using PyQt4, and need to "decorate" my program.
and I want to use qss, it is simple, and easy to use/change.
But I found there is no such site to share qss files,
and I'm a programmer not a artist, so I won't try to write it myself.
Are there any styles I can pick?
...
Hi
I found a rather disguting behaviour of glDeleteTexture, deleteing only parts of the aqcuired memory (GPU side and as Textures get saved back for the sake of speed in RAM), which in my case, is a showstopper bug, my program eating up all memory.
I don't want/require you to read all of the code, it's just a demo, I'd rather know how ...
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...
I'm trying to use a QGraphicsPathItem to represent a polygon with a hole in it (think doughnut). I can get it to draw correctly, and the center is transparent. However, with item selection or movement turned on, I am able to interact with my object when clicking in the hole. I'd rather treat the hole as not part of the polygon.
I've d...
I am using a QWebView to display some content and I want to use custom CSS to spruce up the output. I found that I can use the QWebSettings.setUserStyleSheetUrl() method to load my own CSS into the view. The .css file is in the same directory as my main program.
self.webview = QWebView(MainWindow)
self.webview.settings().setUserStyleS...
Hi,
What I'am trying to do:
Overwrite QFileSystemModel's setData and data to implement Caching of pictures in the shown directory.
I use a QListView for testing purpose.
Here is the relevant code:
My Class with QFileSystemModel as parent:
.h-file:
#ifndef QPICSINFILESYSTEMMODEL_H
#define QPICSINFILESYSTEMMODEL_H
#include <QFileSy...
Hi
i am having one videoeditor view and one progressbar is there with blue color .
But how i will change the progressbar color to red when i clicked trim start and it will return to blue when i will click the trim endbutton in QT
...
Hi,
I'm using a QReadWriteLock in my application to guard access to a resource object.
I'm using QReadLocks and QWriteLocks where I can, but sometimes I need a "long-lived" lock that crosses function boundaries. So sometimes I need to be able to query the state of the QReadWriteLock (or QMutex, same thing in this situation) because unl...
I have a Qt 4.6 based app that is compiled on both a Linux machine and Windows machine. I have two widgets:
1. allowdrop=false and drop type is internal only
2. allowdrop=false and drop type is no drag and drop
On the linux machine, dragging the first control's items to seconds does nothing and even shows the "no" symbol for not allow...
I have a QLabel and a QLineEdit inside a QWidget. When I have the widget inside a QScrollArea, the line edit does not expand to occupy the excess width of the window. When the widget is not inside the scroll area, it does expand.
I've tried setting the size policy of the line edit and the widget, to expand horizontally, but it doesn't ...