qt

wats SIGSEGV, Segmentation fault in QT

I have a QT program which displays the data it receives over UDP. It works fine for around 30 seconds but after a while it gives Segmentation Fault and crashes. This 30 seconds is also not fixed. I used the debugger and got this Program received signal SIGSEGV, Segmentation fault. 0x003c6fd4 in ?? () from /usr/lib/libQtGui.so.4 Can a...

video player with qt phonon (using python)

hi, I am working on Windows xp and am trying to get a simple video player running. I am trying to use Phonon::VideoPlayer module for this. I am connecting the signal as connect(self.player,SIGNAL("finished()"),self.player.deleteLater) and then , when the Play button is pressed, it makes the following call: self.player.play(Phono...

A problem with QT/QuickFIX

Hello everybody, I am using both Qt Framework and QuickFIX engine to create a financial application with GUI. My problem is that when I compile a program that implements QickFIX engine and QT Framework , it gives me a compilation error : it doesn't find some header files in MinGW ( socket.h, inet/in.h, etc ..) I am on Windows 7 and I kn...

Do Qt Applications require KDE?

Do all Qt applications require KDE to be installed? Is it enough if the Qt runtime is installed along with GNOME? Can I make a Qt application look exactly like a GTK application under GNOME? Could anyone please point me to some article detailing the relationship between Qt, GTK, KDE, GNOME, X? ...

Accessing not Non-QObject-based objects from Qt Script

Is there any nice and simple way to access non QObject-based classes, such as QXmlQuery, QDateTime etc. from Qt Script? The only way I see is to wrap QXmlQuery in another class that inherits QObject and declare as slot every function which I need to access from Qt Script: void MyXmlQuery::setQuery ( const QString & sourceCode, const QU...

RubyQt Crashing on QTableWidget

I'm getting some weirdness with QtRuby when using a TableWidget. The table widget loads, but when you click on the elements in the row, the app segfaults and crashes. require 'Qt4' class SimpleModel < Qt::AbstractTableModel def rowCount(parent) return 1 end def columnCount(parent) return 1 end ...

Statically Compiling Qt 4.6.2

This what I did but it results in errors: 1: In win32-msvc2008\qmake.conf I set QMAKE_CFLAGS_RELEASE = -O1 -Og -GL -MD 2: From MSVC2008 CMD I run vcvarsall.bat x86 and vcvars32.bat "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin 3: From Qt 4.6.2 CMD I run the following C:\Qt\4.6.2>configure -release -nomake examples -nomak...

Problem in understanding connectSlotsByName() in pyqt???

Hi all, I couldn't understand the connectSlotsByName() method which is predominently used by pyuic4.. As far the class is single in a PyQt file it's ok since we can use self which will be associated with a single object throughout.. But when we try to use various classes from different files the problem and the need to use connectSlotsB...

Keep widget on top in Qt

I'm creating an application which has a "floating" widget which can be dragged around inside the application window. But it starts up, or tends to go behind other widgets sometimes. Is there any way to make sure that the widget in my application stays on top of all other widgets whenever it is made visible? Thanks. ...

Qt phonon video player example C++ or python

Does anyone have a working example of a video player built using Qt phonon? (in C++ ) See my related question here . I am unable to build one using Python. ...

An "About" message box for a GUI with Qt

QMessageBox::about( this, "About Application", "<h4>Application is a one-paragraph blurb</h4>\n\n" "Copyright 1991-2003 Such-and-such. " "For technical support, call 1234-56789 or see\n" "<a href=\"http://www.such-and-such.com\"&gt;http://www.such-and-such.com&lt;/a&gt;" ); This code is creating the About message box which I wa...

How to print QTableWidget on printer?

I have big size QTableWidget. I want to print it including headers, but QTableWidget doesn't have print() method. How can I implement it? ...

Qt - a QWidget that has a clickable hyperlink

Please tell me how to create a QLabel on the QWidget that has a text that you can click and browser will open the mentioned link. Please bring here a code snippet. Thanks! ...

How can calendar widget's particular cells be coloured?

How can calendar widget's particular cells be coloured? ...

How to detect an active x component that does not respond any more?

My application is written in C++ and uses the Qt framework. I use the QAxWidget class to access an active x component. Now I need some kind of mechanism that notifies my application each time the active x component has crashed or does not respond any more (due to dead lock or infinite loop). (1) can easily been done by watching the e...

How to use of animation in Qt for stacked widgets?

i am using stacked widget and i want to have the following effect : when i press a pushbutton , the button should move to the center and gradually fade out at the same time. while the button is fading the next page of the stacked widget should gradually fade in or any kind of animation would do. tried many thing but i got unsatisfactory ...

How to customize WindowsXPStyle in Qt?

How to customize WindowsXPStyle in Qt? I would like to display the menus and menu items as per the MS Office 2003 style in Qt. ...

Qt SDk 4.6.2 on mac os x: invoke ffmpeg ??

Hello, I am writing an FFmpeg frontend in Qt & testing it on linux, windows & Mac. (FFmpeg is a popular command line tool for video operations) My project is working well on Linux & windows but I cannot invoke FFmpeg on Mac! I have compiled it from svn source on Mac & I have ensured that it is working properly by running it in Mac ter...

How to get the selectionchange event in Qt

Hi.. I have a class inherited from Qwidget, now in that class I will be creating "Qlistview" object and filling up the items to view.. When the selection of items in the listview gets changed I want to get the "selectionchange" event to come.. So how can I achieve this.. pls tell me in brief... thanks ...

Load NSImage into QPixmap or QImage

I have an NSImage pointer from a platform SDK, and I need to load it into Qt's QImage class. To make things easier, I can create a QImage from a CGImageRef by using QPixmap as an intermediate format, like this: CGImageRef myImage = // ... get a CGImageRef somehow. QImage img = QPixmap::fromMacCGImageRef(myImage).toImage(); However, I ...