qt4.7
silently transfer keyPressEvent to one child , and make it focus?
When user types in a QWidget based window, I wanted a QLineEdit to process all input keys, so I tried the following two solution in keyPressEvent() of that QWidget:[详细]
2023-04-11 22:11 分类:问答QT4 using QMdiArea and QScrollArea strange usage trouble
Here is what I am doing: mainwindow with MdiArea, and I add a scrollarea widget (which contains a image label) to MdiArea as a subwindow. It doesn\'t work (the picture doesn\'t show).[详细]
2023-04-11 05:11 分类:问答Why didn't the dialog in the class execute?
Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog) { ui->setupUi(this); connect(ui->addButton , SIGNAL(clicked()) , 开发者_开发问答this , SLOT(addItem()));[详细]
2023-04-09 07:42 分类:问答Qt4 child thread edit Gui on mainthread
I have a tablewidget which needs to be appen开发者_Go百科ded with data from a child thread. I get this error It is not safe to use pixmaps outside the GUI thread. In c# I used a Disptacher to tell th[详细]
2023-04-07 23:19 分类:问答QFile: chop a file into parts
I am making a Qt application (4.7). Is there a way t开发者_运维问答o split a file easily with QFileso that if I have a file x, I can split it equally into n parts fileX1, fileX2, ... fileXn?As far as[详细]
2023-04-06 00:17 分类:问答not getting windows 7 native look and feel
I\'ve recently downloaded and build qt 4.7.4 locally, but there\'s one problem I\'ve been having since using it. I\'m not getting the Windows 7 look and feel. I didn\'t have this problem with 4.6.3. H[详细]
2023-04-04 08:02 分类:问答how can I read and view an image form internet?
Here in this url an image which I want to read and view it in my program here is the code I used to do tha开发者_运维知识库t but I don\'t know how to complete :S[详细]
2023-04-04 03:25 分类:问答How do I know if my Widget is obscured by another application or visible to the user?
Create a new widget, show it, and hide it behind another application. Is there a way to find out if the widget is visible to the user?[详细]
2023-03-31 20:32 分类:问答Widget background not transparent when using QGraphicsView but transparent when using QGridLayout
When I was using QGridLayout to display my widgets, only the widget was shown and the part of the image that was transparent was not shown. Now I switched to using QGraphicsScene and QGraphicsView, an[详细]
2023-03-31 11:14 分类:问答Qt QDialog Issue : QLineEdit Will Not Take Input
I have this basic Qt program that comes from the \"C++ GUI Programming with Qt\" book. However, when I follow the instru开发者_运维技巧ctions (which differ since the book was written for Qt 4.4) my QL[详细]
2023-03-29 08:29 分类:问答