Set dirty dot in mac window using Qt
Is there a way to set the dirty dot (as shown in the screenshot) using Qt 4.5/4.6? ...
Is there a way to set the dirty dot (as shown in the screenshot) using Qt 4.5/4.6? ...
I need to display a property browser under a MFC app. I try to combine and compile the solution for the two http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Windows/qtwinmigrate/ http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Widgets/qtpropertybrowser/ I am using VC2009, QT 2009.04 with Visual Studio Add-On...
Hi, I'm trying to write a test suit for my Qt(c++) application using google test, the main problem is that my application consists of one main program and various shared libs. Everything was working just fine, until I tried to do some code coverage using gcov/lcov (which don't operate on dynamic libs), so I modified all my .pro file to ...
I need to forbid the tab input in a QPlainTextEdit widget. Instead tab should be used has a "focus next" widget. It seems that setTabChangesFocus(bool) is made for that but setting it to true has no effect. I guess it's a Qt bug. Did anyone experiences the same issue and find a solution? I'm using Qt 4.5.2 on snow leopard. Thanks, Bor...
I am having problem filtering the "mousePressEvent " with installEventFilter MyTestxEdit is a widget that holds QTextEdit I want that all the events of QTextEdit will be handle by MyTestxEdit I have used the installEventFilter This Trick works well for events like keyPressEvent but doesn't handle the mousePressEvent what am i doing wr...
I'm writing a DLL that is used as a plugin by another application and would like to leverage Qt's abilities. I have all of the classes set up, compiling and running, but no signals are being emitted. So it seems as though there's no QEventLoop. Attempt 1: I modified my main class to subclass QThread instead of QObject, and in the run() ...
I've a project with following files TestProject/api/apiheader1.h TestProject/api/apiheader2.h TestProject/src/apiimplementaton.cpp TestProject/inc/apiimplementation.h TestProject/TestProject.pro When the project TestProject.pro is built headers apiheader1.h, apiheader2.h needs to be copied to /usr/include/TestLib/. Is it possible to d...
I have scoured through the documentation looking for a way to change the main window's background to an image I have located in the project file. I tried to use a palette with no luck. My question is, how and what is the easiest way to change the background of a window? Thank You for any help, Zach Smith ...
I'm trying to create a simple application, written in Ruby via Qt. I designed a form (MainForm) in a Qt Designer and translated it via rbuic4 to the Ruby code representation. The pure untouched result has four methods, and looks like this: =begin ** Form generated from reading ui file 'stackover.ui' ** ** Created: Р’С‚ 24. РЅРѕСЏ 21:15:...
Product.cpp:34: warning: the address of ‘QTextStream& endl(QTextStream&)’, will always evaluate as ‘true’ Product.cpp: In member function ‘void Product::setProductToSold()’: Product.cpp:45: warning: the address of ‘QTextStream& endl(QTextStream&)’, will always evaluate as ‘true’ #include <string> #include <iostre...
Hi, I'm still learning Qt and I am indebted to the SO community for providing me with great, very timely answers to my Qt questions. Thank you. I'm quite confused on the idea of adding a header to a QTableWidget. What I'd like to do is have a table that contains information about team members. Each row for a member should contain his f...
I have a QComboBox which changes its selection possibilities depending on certain conditions. Because of special combinations, it might have only one selection left over, which has to be "confirmed" by the user, preferably by looking at all possible selections, seeing that there is only one, and then selecting this. My problem: If a us...
I need to add a QAction directly into a QMenuBar (not an QAction inside a QMenu but a QAction directly in the QMenuBar) I am able to do this with the following command. ui->menuBar->addAction("VFTP",this, SLOT(VFTPmenuTrigger()) ); My only problem is that when I add it, it is appended to the end of the menu bar that I have built in Q...
Hello everyone, I'm trying to enhance Qt's QPrintPreviewWidget by allowing it to display page numbers (in the footer somewhere). Unfortunately, I can't quite figure out how to go about it without hacking up Qt's source. I see a great spot for this additional code (in qpaintengine_preview.cpp, in newPage() method) but that means I'm goin...
Am I correct in thinking that the QGraphics* classes are not thread-safe? I am porting an old app to Qt and in the process attempting to make it multi-threaded too. I looked at the update code and I see no locks whatsoever. I started off right, all my processing is done in a set of worker threads so that the GUI does not have to block. ...
Is it possible to implement a QObject for use in QtScript which overloads [] to implement lazy array population? I want to implement something like this: var bar = foo["bar"]; and have the value be lazily calculated in C++ code. Is this possible? ...
A lot of people seem to have an opinion about which is better. I'm not really asking for these opinions, what I'd like to know are the details: What are the things that make one graphical toolkit different from another, and which of these differences do Qt and Gtk+ have? ...
I have a widget and inside it are 32 buttons. I need to connect each button's pressed() signal to a slot in order to call a function who's parameters depend on which button I have pressed. Right now I did that by adding 32 slots in the form of on_QPushButtonName_pressed() but thats a lot of slots. I was wondering if there is another wa...
I am maintaining an application which tries to help the user get his parameters to work together, as there are many interdependencies. Now there is a default value of x for a variable Y. When the user changes some other variable Z, there might be a new minimum value for Y which is greater than x. This is set as a minimum for the spinbo...
I am trying to trap drag and drop events from the standard Apple address book app to my Qt app. This code works fine with Qt 4.4. on Mac OS X 10.4: void MyView::contentsDropEvent( QDropEvent* e ) { QList<QUrl> urls = e->mimeData()->urls(); ... I can then use the URL to get the vCard. Marvellous. But from Mac OS X 10.5 the ap...