I need to send keypresses from my application window to libvlc, how do i do that? I tried using varSetInteger but then i got the following error
error: ‘var_SetInteger’ was not declared in this scope
so i searched for the file in which var_SetInteger was defined and found that it was defined in vlc_variables.h so in included it and got...
Hi,
I'm attempting to use Qt stylesheets to style a reasonably complex UI. So far things are going reasonably well, but I'm running into a difficulty:
How can I work out what widget name I should be targeting for a particular part of a UI? For example, if I want to change the font size in the cells of a QTableView, do I write a style t...
I looked through the related questions and couldn't find anything that addresses exactly what I was talking about, so let me describe.
I have a class, let's say foo that needs to have its own slots and signals, but also needs to inherit from QXmlDefaultHandler (sounds rather odd, but I encountered this situation when trying to use QHttp...
Hi,
I have a QDialog that contains several dock widgets and one QGraphicsView. The widget layout is set to grid, the QGraphicsView size policy is set to fixed on the 2 axes and it the QGraphicsView is center in the empty zone of the QDialog.
I would like to resize my QGraphicsView and let it at the center of the empty zone of the QDial...
I am trying to create a HUD that is an NSPanel in Qt. I am using QMacCocoaViewContainer as suggested in the qt documentation.
In HUD.h
#import <QWidget>
#import <QMacCocoaViewContainer>
class HUD : public QMacCocoaViewContainer
{
public:
HUD(QWidget* parent);
};
In HUD.mm
#import "HUD.h"
#import <Cocoa/Cocoa.h>
HUD::HUD(Q...
I need to implement some plot like that or that in my app ,
it can be even something similar.
I made a search on Qt web site with no progress , and i saw Qwt package but nothing similar there .
Any ideas ?
Thanks a lot .
...
I always try to apply the S.O.L.I.D principles and I really like the Qt toolkit but I find myself stuggeling all the time with the single inheritance rule.
If you are using multiple inheritance,
moc assumes that the first inherited
class is a subclass of QObject.
Also, be sure that only the first inherited class is a QObject.
...
Hi,
I'm working on supporting different languages for our GUI. I'm having a problem translating strings that have a '\n' in them. They seem to be ignored.
In Qt Designer I have a QCheckBox with this in the text field:
Here's an \nexample that doesn't work
This appears in english in our french translation.
Having looked at the .ts X...
Hello,
how can I format the make output (!!by only changing the qmake project file!!).
My compilation lines continue growing, and the one-line-warnings/errors almost disappear between them.
I am thinking of something like
$(CC) in.ext -o out.ext
thanks in regard
...
Is there any class for highlighting required fields in Qt? For C# there's ErrorProvider. Does Qt has anything similar?
...
I'm calling QWebFrame::evaluateJavaScript in one place in my code and it has no effect. However, if I replace this call with the setTimer(0) call and will call the original function when this timer times out it works. How do I know if it works or not? The JavaScript code which is evaluated in my case calls one JavaScript function which i...
We have two massive applications,lets name them "A_app" and "B_app". Both A_app and B_app come with rich editors. A_app's editor is written using Java-Swing and B_app's editor is written using QT.
Now we need to be able to integrate A_app's editor in B_app's editor, which would effectively mean that we need to integrate an existing Swi...
I'm writing an ebook viewer in C++ using Qt 4.5, using the QWebView object to render html files.
Some of the html files need a high window width, otherwise an horizontal scroll bar will appear, which is very annoying, thus I would like to implement an option to fit the content to the window width.
Please, do you have any idea how to ma...
I need to display a context menu whenever a tab is clicked on and it needs to react to that specific tab. Is there any way to do this without subclassing it?
...
I used to program in Qt3 a long time ago and I had read a great book that I still have by O'reilly on Qt3. I wanted to start using Qt4 again now several years later.
Can I use my Qt3 book to get up to speed again, or has things changed so much that I should buy a Qt4 book?
...
I'm writing a simulation of an embedded device's screen (which contains custom widgets on top of a main QWidget), and while the native size of the screen is 800x600, I want to be able to scale it up and down by dragging the window's corner. Without diddling with grid layouts and stretchers (which won't scale the fonts up/down), how do I ...
Has anyone built a Qt S60 app (3rd edition, FP2) that plays (streaming or local) video?
I want to play video 'in' a widget, not with (say) QDesktopServices.
I know there's documentation about how to do this with Symbian, such as here and here but I'm still stuck.
(Apologies in advance for cross-posting: I've asked elsewhere, but with ...
I'm displaying an animated gif in my application by creating a QLabel, and setting the movie as a QMovie. The problem I'm having is that when the gif is displayed, any part of the image that stays a constant color throughout the animation shows up as the background color. I hope I'm explaining that clearly. Here's the code I'm using t...
Hello.
I have tried to create a custom-painted icon using QT under window. The following code displays an icon, but it looks transparent instead of color filled :(. OS is WinXP SP3, IDE is latest QTCreator.
int main( int argc, char* argv[] )
{
QApplication oApp( argc, argv );
QImage oImg( 16, 16, QImage::Format_RGB32 );
oImg.fil...
I am developing an appliation in which I want to continuously receive images from remote host and display them on my screen. for this I am following the given strategy
1) I have a main QWidget object which contains the QImage on it (works fine)
2) Images received from remote host are painted on QImage object, this work is done in a worke...