Questions tagged as 'pyqt'

0
answers

How to enable vertical scrollbar in qwebview in python?

I need to enable scrollbar in a widget qwebview , and put the automatic scrolling, but I did not find any information on how to do this in python. I tried to do this: self.qwebview.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOn)...
asked by 05.01.2016 / 17:30
1
answer

As I call a method of a class of type QtGui.QMainWindow, inside another class of type QObject in python

I have a class: class MyWindow2Class(QtGui.QMainWindow, form2_class): Inside the init of it I have this code snippet: self.scr = ScriptManager(self) self.qwebview.page().mainFrame().addToJavaScriptWindowObject("obj", self.scr) self...
asked by 03.01.2016 / 22:17
1
answer

help with Qlocale and format currency brazil

In c ++ I used to convert an integer value to the Brazilian currency format as follows: QLocale loc = QLocale::system(); QLocale brasil(QLocale::Portuguese); loc.setNumberOptions(brasil.numberOptions()); QLocale::setDefault(loc); cout <<...
asked by 28.01.2017 / 21:34