qwidget

Issue with “blanking screen” when running Qt application in fullscreen mode

非 Y 不嫁゛ 提交于 2021-02-11 17:41:49
问题 We have a Qt based browser application which uses QWebEninge under the hood. Currently we are fighting with an issue where the screen goes blank for a moment eacht time the window gets or looses the focus (f.ex. each time the QVirtualKeyboard becomes invoked). Following a Qt's recommendation, we tried to implement QWindowsWindowFunctions::setHasBorderInFullScreen prior to call of QMainWindow::showFullScreen() . But this results in an inacceptable reduction of the available window area, e.g.

Qt application windows moved between multiple monitors make child dialog showing with bug of empty blank windows only

你离开我真会死。 提交于 2021-02-10 06:36:50
问题 [Update on 19 aug 2019 about workaround of this bug] environements: System: Windows 7 (reproduced on windows 10 PC on execution too) QT version: 5.11.2 as well as 5.13 compilation kit: Qt 5.11.3 MinGw 32bits ( mingw53_32 ) I encounter an issue with QDialog in Qt app. it's easy to reproduce, with multiple monitors(eg. 2 screens), you launch your application, then you move your main windows from one monitor to another one, then you click on the button of app to show a child dialog, then it this

Qt application windows moved between multiple monitors make child dialog showing with bug of empty blank windows only

懵懂的女人 提交于 2021-02-10 06:36:28
问题 [Update on 19 aug 2019 about workaround of this bug] environements: System: Windows 7 (reproduced on windows 10 PC on execution too) QT version: 5.11.2 as well as 5.13 compilation kit: Qt 5.11.3 MinGw 32bits ( mingw53_32 ) I encounter an issue with QDialog in Qt app. it's easy to reproduce, with multiple monitors(eg. 2 screens), you launch your application, then you move your main windows from one monitor to another one, then you click on the button of app to show a child dialog, then it this

Qt application windows moved between multiple monitors make child dialog showing with bug of empty blank windows only

狂风中的少年 提交于 2021-02-10 06:36:22
问题 [Update on 19 aug 2019 about workaround of this bug] environements: System: Windows 7 (reproduced on windows 10 PC on execution too) QT version: 5.11.2 as well as 5.13 compilation kit: Qt 5.11.3 MinGw 32bits ( mingw53_32 ) I encounter an issue with QDialog in Qt app. it's easy to reproduce, with multiple monitors(eg. 2 screens), you launch your application, then you move your main windows from one monitor to another one, then you click on the button of app to show a child dialog, then it this

What is best way to remove items from layout in pyqt

一曲冷凌霜 提交于 2021-02-07 23:30:02
问题 I am having some issue with layout in pyqt. After closing the items from the layout still if layout.count() returns the old item count. So I think .close() not really removing items from the layout. Here is a full working example. import sys from PyQt4 import QtGui,QtCore class LayoutTest(QtGui.QWidget): def __init__(self): super(LayoutTest, self).__init__() self.vvbox = QtGui.QVBoxLayout() self.dvbox = QtGui.QVBoxLayout() vbox = QtGui.QVBoxLayout() vbox.addLayout(self.vvbox) vbox.addLayout

What is best way to remove items from layout in pyqt

余生长醉 提交于 2021-02-07 23:28:39
问题 I am having some issue with layout in pyqt. After closing the items from the layout still if layout.count() returns the old item count. So I think .close() not really removing items from the layout. Here is a full working example. import sys from PyQt4 import QtGui,QtCore class LayoutTest(QtGui.QWidget): def __init__(self): super(LayoutTest, self).__init__() self.vvbox = QtGui.QVBoxLayout() self.dvbox = QtGui.QVBoxLayout() vbox = QtGui.QVBoxLayout() vbox.addLayout(self.vvbox) vbox.addLayout

What is best way to remove items from layout in pyqt

你离开我真会死。 提交于 2021-02-07 23:26:54
问题 I am having some issue with layout in pyqt. After closing the items from the layout still if layout.count() returns the old item count. So I think .close() not really removing items from the layout. Here is a full working example. import sys from PyQt4 import QtGui,QtCore class LayoutTest(QtGui.QWidget): def __init__(self): super(LayoutTest, self).__init__() self.vvbox = QtGui.QVBoxLayout() self.dvbox = QtGui.QVBoxLayout() vbox = QtGui.QVBoxLayout() vbox.addLayout(self.vvbox) vbox.addLayout

PySide switching widgets with events?

冷暖自知 提交于 2021-02-05 08:50:57
问题 I can't figure it. I want to be able to swap out QWidgets according to events like button clicks but I am missing something and I haven't been able to search out any example along the lines of the code below. What I want to do is click one of the top buttons and get the widget below to switch between either the QCalendar or QtextEdit. Where am I going wrong? Thanks! #!/usr/bin/python import sys from PySide import QtGui, QtCore class Example(QtGui.QWidget): def __init__(self): super(Example,

calling constructor of a class in another class

强颜欢笑 提交于 2021-01-29 05:07:37
问题 I have two classes named info and i2 in qt. info is a c++ class and i2 is a Qt designer from class . I want to use i2 as an environment for testing my info class. I included info.h in the header of i2.my info class has two constructor like below: info(); info(const void *ip, const char* pw, const void *hostName); now I want to make an object of info in i2 class and pass those three parameters( ip and pw and hostname) to info and use them in my program. like below: private: Ui::i2 *ui; info

Translucent QWidget should be clickable cross-os

谁说胖子不能爱 提交于 2021-01-29 03:36:34
问题 I'm trying to accomplish the following with a Qt (C++) app, cross OS. Upon running the program a new window pops up, a fullscreen QWidget. Now I want this to be see-through/transparent, so the user won't actually see it. On this 'layer' a user can drag his/her mouse to draw a (red) rectangle to select an area which is - when the mouse is released - taken a screenshot of. The problem: The issue lays in the whole transparent layer thing since this doesn't appear to work well cross OS. Because