qt

selected Rows/Line in QTableView copy to QClipboard

Hi. First of all, sorry for bad English. It's about C++ and Qt. I have a SQLite-Database and I did it into a QSqlTableModel. To show the Database, I put that Model into a QTableView. Now I want to create a Method where the selected Rows (or the whole Line) will be copied into the QClipboard. After that I want to insert it into my OpenO...

Inheriting std::istream or equivalent

I need to bridge two libraries over a stream. QDataStream which is a stream from Qt and some function from another libraries that looks like this void read_something(istream& i); I have no control over how the QDataStream is created and I'm not allowed to change the interface of read_somthing function. The first thing I can think ...

QT cross-platform issue: compiles fine on windows, linker error on linux

I have some QT code called "GUI". Via Qt Creator, I am able to compile (using gcc) it without any complaints on Windows. However, when I try to compile it (again using gcc via Qt Creator) on Linux, I get a linker error "collect2: ld returned 1 exit status". The only non-QT library that I use is the STL's vector library. (To make matt...

Qt dialog with no window icon (system menu)

Is there a way to create a window (such as a QDialog), without a window icon on the top-left corner? I have tried using a transparent icon but it leaves a blank space there. Edit: richardwb's solution below removes the system menu, but also removes Minimize/Maximize/Close (caption buttons) as well. This might do for now, but hopefully t...

Qt QFileDialog input field - tab complete like shell

I've got a basic PyQt QFileDialog file browser goin in Python, Kubuntu. My issue is I would like the "tab key" in the file input to act as tab-complete does in a shell. Is there any way to accomplish this? ...

Qt QTabWidget icon problem

I'm using the newest Qt 4.5 and I'm creating my GUI with Qt Creator. My tab widget looks fine in the Creator, with all icons displayed. However, when I compile it and run it, there are no icons, but the tabs are wider than they are which indicates something, obviously. I tried both .png and .ico formats, none work. The size of icons is 1...

Qt HTTP authentication with QNetworkAccessManager

I'm working with a webservice which requires a valid username/password. From PyQt, I'm accessing the webservice using QNetworkAccessManager which emits the authenticationRequired (QNetworkReply*, QAuthenticator*) signal when (obviously),authentication is required. When I fill in the user and psswd for QAuthenticator, everything wor...

Does a Qt application work in Google Native Client?

I'm not familiar with Qt or with Google Native Client. Is it possible for a TRIVIAL Qt console application to be ported to Google Native Client? I understand that some work would be involved. But the question is, how much if it's even possible? ...

Qt QFileDialog QSizePolicy of sidebar

With a QFileDialog I'm trying to change the size of the side bar in a QFileDialog. I want it to have a larger width. I was looking at dir(QtGui.QFileDialog) which shows a plethora of functions/methods and dir(QtGui.QSizePolicy) which seemed like the right choice. I've not been able to manipulate the size of the side bar though. print 's...

What is the most efficient way to display decoded video frames in Qt?

What is the fastest way to display images to a Qt widget? I have decoded the video using libavformat and libavcodec, so I already have raw RGB or YCbCr 4:2:0 frames. I am currently using a QGraphicsView with a QGraphicsScene object containing a QGraphicsPixmapItem. I am currently getting the frame data into a QPixmap by using the QIma...

Qt Image From Web

I'd like PyQt to load an image and display it from the web. Dozens of examples I've found online did not work, as they are for downloading the image. I simply want to view it. Something like from PyQt4.QtWebKit import * web = QWebView() web.load(QUrl("http://stackoverflow.com/content/img/so/logo.png")) ...

QPixmap of a QGraphicsTextItem

How do you convert/paint a QGraphicsTextItem into a QPixmap? ...

How to build qt out of source

hello the question goes as the title. I was searching a lot through qt forums and google the last couple of days. There is no obvious answer to this question , and maybe not at all. I found the -prefix (not even documented on windows) option that can be supplied to configure to specify different install directory , but this is not clea...

linking boost.asio

Hello, I have a problem linking boost.asio. It uses boost.system and the linker errors start with: /boost_1_39_0/boost/system/error_code.hpp:205: undefined reference to `boost::system::get_system_category()' which means I need to link boost.system. I already built boost and I have now several lib files. boost_system-mgw32-d-1_39.dll...

XML vs Hardcoded interface?

I'm working on a flexible GUI application that can have ~12 varied layouts. These layouts are all well-defined and won't change. Each layout consists of multiple widgets that interface with a DLL using bit patterns. While the majority of the widgets are the same, the bit patterns used vary depending on the interface type being presented....

Qt - fullscreen widget

Hello, i have a question. How can i make my widget fullscreen? I've tried something like this: void MainWindow::SetFullScreen() { // Make our window without panels this->setWindowFlags( Qt::FramelessWindowHint | Qt::Tool | Qt::WindowStaysOnTopHint ); // Resize refer to desktop this->resize( QApplication::desktop()->size(...

Order of slots called on QObject

I have a QObject that has multiple slots connected to one of its signals. Is there an order in which of each of these slots are called when the signal is emitted? ...

GNU make --jobs option in QMAKE

I am using qmake to generate MinGW32 Makefiles for a small Qt C++ app we are developing. My problem: all those dual/quad core CPUs are sitting there idly while only one thread is doing the building. In order to parallelize things I tried passing --jobs 4 to make, but the problem is that qmake generates a generic makefile inside of which ...

How can I create a custom QLayout (and ensure it's updated) in PyQt?

I'm trying to implement a custom QLayout using PyQt. setGeometry gets called, and I loop through and call setGeometry on all the widgets I'm managing, but for some reason the widgets never get painted, despite all having the correct geometry. Also, invalidate, update, and activate never seem to get called on my Layout. Does anyone hav...

Does Qt work well with STL & Boost ?

I am interested in learning Qt. I am fairly good with C++, STL and Boost. I like STL/Boost style very much, and I use them with C++ whenever I can in uni projects. However, I always miss the GUI. It seems that Qt is the best solution in my case. Qt does have a good collection of containers, but I am greatly familiar with STL/Boost stuff....