redirect keyboard events to QTextEdit when it has no focus ?
when the QTextEdit doesn’t have focus ,how to redirect keyboard events to the text editor ? import sys from PyQt4.QtGui import * from PyQt4.QtCore import * class BoxLayout(QWidget): ...
View ArticleMySQL Driver Compiled by MinGW 64bit can't work
I have succeed compiling mysql driver with x64-4.8.1-posix-seh-rev2 but in the demo when try to open the database, I got this Error – RtlWerpReportException failed with status code :-1073741823. Will...
View ArticlePyQt5 - 64bit - ImportError: DLL load failed: %1 is not a valid Win32...
Hi, I had a hard time getting PyQt5 to work on 64bit OS. I kept getting error while importing the modules. ImportError: DLL load failed: %1 is not a valid Win32 application. Python & PyQt5,...
View ArticleQt 5.1 Installation Problem (for Android)
Hi guys I want to make a program on Android. So I download the Qt 5.1 Windows 32bit Mingw. I did step by step what that page [doc-snapshot.qt-project.org] says. This page [qt-project.org] says I should...
View ArticleInsert row from Qtableview to another
Hi, every body i have a probleme with inserting a row from a table call tableProduct to another table call tableSalle when the user click entre key in the first table “tableProduct” i can’t figured...
View ArticleInsert Layout into scrollArea
Hello, I have been trying to code a Horizontal Layout of widgets into a scrollArea which I placed using the Qt Designer but I still can’t get the private slot: display() to display the Layout after the...
View ArticleHow to browse remote computer?
Hi, I’m creating remote desktop application in qt 4.8. I have to implement some way to browse remote computer directory structure and possibility to download files on local machine. I’m wondering how...
View ArticleWebView in Qt 5.1 - first impressions
Now that I have WebView successfully displaying Google Maps in Qt 5.1 I thought I would share my first impressions. For a start, it seems to be way slower than Firefox or any other standard browser on...
View ArticleQAction keyboard shortcut failure after menu use – application focus issue?...
I’ve run into something that has me completely stumped, and am desperately hoping that someone can help me out. I’ve got an OpenGL renderer application that used to run fine under Qt4.8 – I’m now...
View ArticleWhat is this form in Qt?
Hi, there, I am new to Qt. I found there is no way to insert a picture rather than providing the link in this forum. The following is the link, and please see the last graph, i.e. on the bottom of that...
View ArticleQt script engine problems
I ran across a problem (described here [qt-project.org]) that seems to indicate some anomalous behavior in the Qt script engine as implemented in QtWebKit. I don’t know how universal this “problem” is...
View Articleredirect keyboard events to QTextEdit when it has no focus ?
when the QTextEdit doesn’t have focus ,how to redirect keyboard events to the text editor ? as This saves the user from clicking the text editor before entering text, making the application more...
View ArticleCutting mp3 file
Hi, I’d like to write an application for my android galaxy s4 mobile that could cut mp3 file, that is, for example create a new mp3 file containing the fourth minute of another mp3 file. I did not see...
View ArticleProgram exit when it reached the line QCA::Initializer
Hi, I am trying some decryption using QCA. But Qt says “The program has unexpectedly finished.” when it reached QCA::Initializer code #include <QApplication> #include...
View ArticleAdding new "SLOT" and "SIGNAL" into existing class
Dear all: I want to add “SLOT” and “SIGNAL” of existing item in my .ui file. How should I do??I only know a way that is creating new class inherits “ Qobject” like following: #ifndef MODEL_H #define...
View Articlehow to determine what has been deleted in a QTextDocument?
QTextDocument::contentChanged tells you how many characters have been removed, but not what has been removed. I’m looking into storing QTextBlocks or similar and comparing before and after… but it...
View ArticleQt dynamic styles [Stylesheet]?
I was needing a QLabel that could deal with a mouse hover event – since :hover is not supported by QLabel, I had to override a new class from QLabel, responding to enterEvent() and leaveEvent(). So far...
View Articlehow to put lable on another.
Hi, i have three lables and set pixamp on for that. i want second lable was on the top of them and first lablae was between second and third lable. how can i do that?(by default newer lable is top)
View ArticleQt Creator 2.7.2不能输入中文怎么解决?
刚下了Qt5.1,使用自带的Qt Creator,发现输入不了中文,在Editor 和 Designer里都不行,切不到中文输入法,不知道为什么,我用的系统是Ubuntu12.04。谁知道怎么解决吗?先谢谢了!
View ArticleQt4 and Bitmap Fonts - Rendering Problems - Linux
I like using pixel/bitmap fonts, but they don’t render properly with qt4: i’ve always had this problem across different linux distros, including ubuntu, both 32 and 64 bit. I’m using QGtkStyle to port...
View Article