qt

QX11EmbedWidget and QX11EmbedContainer

Can one place an arbitrary program (firefox, openoffice, etc...) in a QX11EmbedContainer? The fllowing seems, to work int main(int argc, char *argv[]) { QApplication app(argc, argv); QX11EmbedContainer container; container.show(); QProcess * process = new QProcess(&container); QString executable("xterm"); QStri...

Painting on top of video in a Qt Widget

I am developing a Qt application that can play the videos and shows some scrolling bar along the way. The window size MUST Not exceed the limit of 720px in height and 1280 in width. I use MPlayer as a slave process and pass it the winId() of the QWidget and it renders the video in it. Now I want another widget on top of this video widget...

Scrolling QGraphicsView programmatically

I've want to implement a scroll/pan-feature on a QGraphicsView in my (Py)Qt application. It's supposed to work like this: The user presses the middle mouse button, and the view scrolls as the user moves the mouse (this is quite a common feature). I tried using the scroll() method inherited from QWidget. However, this somehow moves the vi...

Open source project for c++ developer?

I am a vc++ developer (but like Qt) interested in learning from open source project by contributing and reading the code. I use windows as primary development platform. Which project will be right for me to start? Is chromium a good choice? ...

QT_DIR Not found ...

Hi, I am trying to compile Qt 4.5.2 with ITK. I get the error QT_DIR not found. I compiled QT 4.5.2 from Source. ccmake tells that the directory containing QTConfig.cmake file is the QT_DIR. I am not able to find the file anywhere. Am I missing something? This is the error i'm getting in CMake: CMake Warning at CMakeLists.txt:11 (F...

Unable to open QT form (*.ui) files from Visual Studio

I am unable to open QT form file (*.ui) form visual studio 2008 QT project. It the following error " The file test.ui cannot be opened with Qt 4 form editor. Try converting the file using uic.exe " Anyone know about this problem.? I am using VS 2008 and QT 4.5.0 -Thanks for u r time. ...

How do I import a Visual C++ project into QT Creator?

I have been working with the commercial version of QT on Windows for some time, so have a large collection of Visual Studio projects. I would like to begin moving these projects into QT Creator--I have certainly moved some of them "by hand", and can make that work--but it seems like there ought to be (might be?) a Visual Studio import s...

Grab Information from "QWidget"

Anyone have any idea how to grab text from a QWidget window in a Windows application? This is what it looks like when I look at it using Winspector: http://www.tightpoker.com/images/ftplobby.jpg I would have posted that as an image but apparently new users aren't allowed to use image tags... It can't find any sub classes (ie, for the...

Keep a stream from fstream open through member functions

Hi, I am trying to keep a stream to a file /dev/fb0 (linux framebuffer) open throughout several Qt member functions. The goal is to use a myscreen::connect function to open up the framebuffer bool myscreen::connect() { std::fstream myscreen_Fb; myscreen_Fb.open("/dev/fb0") QImage* image; image = new QImage(w, h, QImage::Format_RGB...

calling Qt's QGraphicsView::setViewport with a custom QGLWidget

I've derived from QGLWidget before, like so: class MyGLWidget : public QGLWidget { public: // stuff... virtual void initializeGL() { /* my custom OpenGL initialization routine */ } // more stuff... }; However, I find that if I try to initialize a QGraphicsView with my custom QGLWidget as the viewport, initializeGL doesn't g...

Beginner's Guide to Setting Up Qt for C++

Hello, I'm interested in playing around with GUIs and I've been trying to set up Qt for Visual Studio 2008 and MinGW but have failed miserably—in that at times I'd compile the library and it still wouldn't work and others the compile would fail. Can anyone recommend a good guide to set up Qt (or another GUI toolkit if setting up Qt just...

Threading Building Blocks (TBB) for Qt-based CD ripper?

I am building a CD ripper application in C++ and Qt. I would like to parallelize the application such that multiple tracks can be encoded concurrently. Therefore, I have structured the application in such a way that encoding a track is a "Task", and I'm working on a mechanism to run some number of these Tasks concurrently. I could, of ...

PyQt Automatic Repeating Forms

I'm currently attempting to migrate a legacy VBA/Microsoft Access application to Python and PyQt. I've had no problems migrating any of the logic, and most of the forms have been a snap, as well. However, I've hit a problem on the most important part of the application--the main data-entry form. The form is basically a row of text boxes...

Description of folder structure of Qt SDK

Do you know any resource describing Qt SDK folder structure? I'm wondering why some of dll files are in c:\qt\2009.03\bin and in c:\qt\2009.03\qt\bin at the same time? Having the same name they have different sizes (for example QtCore4.dll - 2 016 256 bytes in the first folder and 2 730 496 bytes in the second folder). What's the differ...

desktopdock or stardock in Qt

Is there any opensource/sample application in qt/c++, just like desktopdock or objectdock..? ...

Porting a Qt Application from Linux to Windows

I built a qt application that uses opengl on linux and am trying to build it on windows. I used g++ to make it on linux and am using command line nmake for Visual Studio 2005 to build it on windows. When I tryed to build my application I typed qmake -makefile app.pro nmake The nmake failed and said "bool qt_win_owndc_required"... alr...

How do I specifiy an object directory in a QT project file?

I am building a console QT project. Currently, my project file looks like this: CONFIG += qt console debug CONFIG -= app_bundle HEADERS = HelperClass.h SOURCES = HelperClass.cpp \ main.cpp TARGET = doit My QMAKESPEC environment variable is set to: macx-g++ I go to the directory with the project (and source) files and run qm...

Sharing same model in two QGraphicScene instances in Qt

I have an application that displays an editor for a diagram using QGraphicsScene object. I would like to create a read only version of the same dialog but have ability for user to see both at the same time. SimScene* pScene1 = new SimScene(model); // adds model to scene SimScene* pScene2 = new SimScene(model); // adds model to scene ...

How do I build a QT console app in 64 bit on Mac OSX?

I need to build my QT console application as 64 bit. i.e. x86_64 My config file looks like this: CONFIG += qt console debug x86_64 CONFIG -= app_bundle HEADERS = HelperClass.h SOURCES = HelperClass.cpp \ main.cpp The compile goes fine without issue. But, when the build gets to the link step, it complains that I don't ...

What is this widget called?

There is a rotary control I have seen that is like the edge-on view of a knurled volume control wheel on an old Walkman. Without knowing what it's called I can't search for it - I'm pretty sure that the app was based on Qt. Edit - having tried it on a couple of people younger than me it seems that the iPod generation don't know volume k...