qt

VC++ Library Clashing Problem

I am working on a C++ project that uses Qt (gui lib), VTK (graphics lib) and another library which is so obscure I won't mention its name and will instead call it LIB_X. The project uses Qt for the gui components and VTK (more precisely the QVTKWidget extension provided by VTK that supports Qt) for rendering geometry.. and it uses LIB_X...

How to manipulate pages content inside Webkit window (Using QT and QTWebKit)?

Hello! Please help me to understand, how can I manipulate html content which is shown inside qt webkit window. I need simple operations like filling in input fields and clicking a button. Any tips/article on this? ...

PyQt Qtreewidget turn off selection

By default a QTreeWidget manages the selection of rows [when you click a row it highlights it, when you click another row it highlights that and deselects the previous row] , I dont want this and cant figure out how to turn it off. ...

If I use QT For Windows, will my application run great on Linux/Mac/Windows?

I'm under the impressions that Python runs in the Triforce smoothly. A program that runs in Windows will run in Linux. Is this sentiment correct? Having said that, if I create my application in QT For Windows, will it run flawlessly in Linux/Mac as well? Thanks. ...

How can I simulate user interaction (key press event) in QT?

I need to simulate "Enter" key event in QT. How can I do this? ...

I just installed QT for Windows but I can't find the control toolbox anywhere. Where do I drag controls to a form?

I opened a starter application to see how it works but I only see C++ files, nothing in Python. How can I configure QT to work for Python? :S Also, where can I find the visual form? ...

Raise and lower QTreeWidgetItem in a QTreeWidget?

Question says it all how do you raise and lower [change the positions of ] QTreeWidgetItems in a QtreeWidget , ...

Disable drag/drop in QtWebkit

Hi I am trying to create an HTML GUI for an application using Qt's WebKit... so far everything is going smooth with a minor problem, I don't want people to be able to drag and drop images from my GUI. I have disabled text selection using a small java script. But I'm not sure how to disable image dragging.... I have used onmousedown="ret...

Show dialog/frame fullscreen on a second sceen sing QT/c++

I have an application with a secondary view that should be shown fullscreen on the other monitor (the one the main app is not on). Displaying the frame works quite well with frame.showFullScreen(); But, how can I tell it which screen it should be on? Is there a way to detect if a second screen is avauilable, as well? ...

Best way to start, stop and send parameters to separate Python script from C++ application ?

I try to explain the situation: I have a QT application written in C++ and QT. This QT application starts a separate console C++ application that runs in the background. These two communicate using perhaps sockets, don't know yet. Console C++ application needs to start and stop my gnuradio python script. Also it needs to send parameter...

QtWebkit as a desktop application GUI

Hi I was wondering if anyone knows about good tutorials or articles describing methods of creating an HTML GUI for an application using QTWebKit for a windows desktop application. I am mainly concerned about communicating messages, events and information between lets say a DLL(written in C++ for example) and the GUI (QtWebKit). need g...

QtScript: how to reload current script?

Hello. QScriptEngine has evaluate() method that can be used to load script, execute it and to run a specified function from already loaded script. But how to clear current script and load a new one? For example, i use evaluate() to load a script from file and then evaluate() to get a script functions and call them. But what can i do to ...

Prevent tab from resizing

Hello All, I have a QTabWidget on mainwindow. When I re-size main window, I don't want tabs in a tabwidget should re-size. I used tabbar()->setExpanding(false); This property allow to control the tabs to use the empty space and not tabs themselves. Any help is highly appreciated. Thanks, Rahul ...

Getting pid and details for topmost window

Does anyone know how to get the PID of the top active window and then how to get the properties of the window using the PID? I mean properties like process name, program name, etc. I'm using Qt under Linux (Ubuntu 9.10). ...

Qt 4.6 - C++ - QTreeWidgetItem Iterator

Hello everyone! I have a QTreeWidget with items in it. The first column contains a unique number. This is set via item->setData(0, 0, unique_number);. The second column contains a checkbox, set via item->setCheckState(1, Qt::Unchecked);. The user can select the items (s)he would like to work with and presses a button. The slot for this b...

How to implement the "Edit" menu with "Undo", "Cut", "Paste" and "Copy"?

Greetings, for one of my applications I'm trying to implement an "Edit" menu. This menu usually has the standard-entries Undo, Cut, Copy and Paste. This menu is not there by default, and users seem to expect it especially on Mac OS X. Is there a an easier way of implementing this, without doing so in every widget manually? Since most ...

PyQt4 signals and slots

Hello, I am writing my first Python app with PyQt4. I have a MainWindow and a Dialog class, which is a part of MainWindow class: self.loginDialog = LoginDialog(); I use slots and signals. Here's a connection made in MainWindow: QtCore.QObject.connect(self.loginDialog, QtCore.SIGNAL("aa(str)"), self.login) And I try to emit signal ...

How to auto-resize qt widget?

QT Version: 4.5.2 OS: ubuntu 8.04 I have a trouble with auto-resizing widget, here is an example: As the figure shows, here are two widgets, one is a "StrWidget"(the upper widget in the figure 1) which has 5 QLabels for showing strings, the other is a "CtrlWidget" which tells StrWidget what string to show. When I click "send CCC", t...

Passing by reference [C++], [Qt]

Hi, I wrote something like this: class Storage { public: Storage(); QString key() const; int value() const; void add_item(QString&,int); private: QMap<QString,int>* my_map_; }; void Storage::add_item(QString& key,int value)//------HERE IS THE SLOT FOR ADDING { *my_map_[key] = value; } and when I'm trying to add...

Create .deb package for a Qt project

Is there some sort of an automated way of creating .deb packages from a project.pro file? I tried ubucompilator without much luck. Thanks! ...