Situation:
I have tcp client made with Python and tcp server made with Qt. I try to send bytes with my client but I can't get Qt server to read these bytes.
Using Python made client and server, everything works fine. Also I can get my Python client work with C# server with no problems.
Code for Python client:
import socket
import sys...
I would like my Qt app to expose a service to another app written in .Net using WCF.
Is there any support in Qt for implementing WCF services?
...
Hi Everybody,
I am trying to put the printer to run the output from an html document.
Here is a small function to do that:
def callPrinterHtml(self,document):
self.printer = QPrinter()
self.printer.setPageSize(QPrinter.Letter)
dialog = QPrintDialog(self.printer, self)
if dialog.exec_():
document.print_(self.pr...
I am trying to compile Linux source but always get qt missing, here is a output
[root@localhost linux-2.6.32.5]# yum install qt3
Loaded plugins: refresh-packagekit
Setting up Install Process
Package qt3-3.3.8b-25.fc11.i586 already installed and latest version
Nothing to do
[root@localhost linux-2.6.32.5]# make xconfig
CHECK qt
*
* U...
how can i use this dll function?:
extern "C"__declspec(dllexport)
void __cdecl InvertRawPic(unsigned char *In, unsigned char *Out,
unsigned int rows, unsigned int cols);
in QT. This function is to invert images.
...
Hi guys,
I have already asked a similar question here:
http://stackoverflow.com/questions/956720/python-open-raw-audio-data-file
Now I want to open, and play, raw audio files with QtPhonon.
The main goal is to open the file and play a certain location in the file, for example from the 10th second to the 20th second. Is it possible usin...
Hello!
I am working on a uni project and our goal is to make a program that scans all img/video/movie files on a selected directory, stores them in a database and then shozs them in an organised way (using QTreeWidgetItem). Program allows you to do some stuff like read the files, open them and so on. Now, the problem is that I would lik...
I'm using a small black and white screen and need the scrollbar to just be a black slider in a black outer frame. I got what I wanted using style sheets but including them in the configuration when installing takes up too much space so I can't use them. Is it possible to remove the arrows by inheriting from QStyle or something?
thanks
...
I am trying to use the debugger in a thread but the values of the watched variables dont get updated in them unless i remove the break point, make it run for a while then put break point back. They also get refreshed if a messageBox appears. Why is this?
...
Hi All,
I want to paint contents in a multi-thread application using qt.
The qt runs in the main thread. I have a thread B to generate paint tasks and to send tasks to qt main thread. Currently, I call "mywidget.update" in thread B, the "mywidget.paintEvent(..)" will be triggered in main thread.
My problem is that I cannot pass any o...
In my QT application I use a QTabWidget for the base navigation. This QTabWidget I setup in the ui. In some of the tabs of the QTabWidget I need to have QStackedWidget to be able to "drill down in the view".
I tried adding the QStackedWidget inside the ui also but it automatically adds a page to the stack. I want to add the pages for th...
Using MSVC 2008 SP1, and qt-vs-addin-1.1.2
I have a pre-existing project in MSVC that I have QT'ified: In main I added a QApplciation, and my windows are now all QWidgets.
I added custom build steps for my .qrc and .ui files and "moc" as a custom build step on any Q_OBJECT header files.
This all functions - the project builds and runs,...
i have a Qt application.
when i run this application, there is a console opening behind the application. in development it is nice because i see debug outputs on the console.
now, i want to give this executable to the customer and i dont want to any console window.
how can i hide it??
(ps. i use Visual Studio 2008)
...
Hi all,
I'm new here, and have a question about opengl in Qt4, which I've been learning over the last few months.
Particularly, I'm seeking advice on the best way to compose a scene in a good object-oriented fashion using the QGLWidget. I'd ideally like every item in my scene to be sub-classes of a super 'Entity' class. Then in my main...
Hello
Do you know any (paid or free) MFC control with features like (QT) QTextEdit control?
Good HTML (and may be RTF) support (import, export)
Ability to edit manual control content
:)
...
Hey!
I have the following problem with QT model/view framework. I want to render a widget inside a table view item.
First my thought was to use
void QAbstractItemView::setIndexWidget( const QModelIndex & index, QWidget * widget )
But the documentation for this function explicitly states:
This function should only be used to
di...
In QT4.5,
I use a QTableWidget, and I have connected the signal QTableWidget::itemClicked() to a custom slot like this:
connect(_table, SIGNAL(itemClicked(QTableWidgetItem*)), item, SLOT(sloItemClicked(QTableWidgetItem*)));
I create such a connection for each row I add to the table.
The problem is that the slot sloItemClicked get ca...
can qt signals be public or private?
Can I create internal signals, which are seen only inside the class?
added:
I have a class with some internal signals. How can I make those signals
invisible for other classes (encapsulation & information hiding)
thanks in advance,
anton
...
I have a class which inherits QAbstractTableModel, and holds some complex structs in a QMap. The QVariant data(QModelIndex index, ...) method just returns an enum which describes how a custom item delegate should draw the contents of a cell. I would like to implement drag and drop functionality in this model so that users can reorder th...
I have a QTableView in which I am displaying a custom model. I would like to catch right mouse clicks so that I can open a contextual drop down menu on the underlying table data:
MainWindow::MainWindow()
{
QTableView * itsView = new QTableView;
itsView->installEventFilter(this);
... //Add other widgets and display them all
}
...