Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 28 results for
textbrowser
- Page 1
process still runs after programme closed
Programming
Software Development
11 Years Ago
by dr_robert
…setObjectName(_fromUtf8("centralwidget")) self.
textBrowser
= QtGui.QTextBrowser(self.centralwidget) self.
textBrowser
.setGeometry(QtCore.QRect(30, 20, 256…Window Name***", None, QtGui.QApplication.UnicodeUTF8)) self.
textBrowser
.setHtml(QtGui.QApplication.translate("MainWindow", "<…
Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by xopenex
…quot;Form")) Form.resize(570, 604) self.
textBrowser
= QtGui.QTextBrowser(Form) self.
textBrowser
.setGeometry(QtCore.QRect(0, 130, 561, 301))… self.
textBrowser
.setObjectName(_fromUtf8("
textBrowser
")) self.textEdit = QtGui.QTextEdit(Form) self.textEdit.…
Changing Window Frames in PyQt
Programming
Software Development
9 Years Ago
by silverdust
…_fromUtf8("matricInput")) self.
textBrowser
= QtGui.QTextBrowser(self.centralwidget) self.
textBrowser
.setGeometry(QtCore.QRect(565, 191,… 161, 161)) self.
textBrowser
.setObjectName(_fromUtf8("
textBrowser
")) MainWindow.setCentralWidget(self.centralwidget) self.…
Program has stopped working with advent of a PyQt GUI. Seeking advice.
Programming
Software Development
14 Years Ago
by Stev0
…decoded = fetched.decode("utf8") self.ui.
textBrowser
.append(decoded) except Exception as err: e = …str(err) self.ui.
textBrowser
.append(e) def quit_mining(self): sys.exit() if…
QTextBrowser doesn´t display image from html file
Programming
Software Development
9 Years Ago
by myk45
… is the part which loads the html file into the
textbrowser
: QFile file(QApplication::applicationDirPath().append("/test.html")); if…::ReadWrite|QIODevice::Text)) return; QTextStream in(&file); ui->
textBrowser
->setHtml(in.readAll()); file.close(); And this is my…
qt fetch the url of a html
Programming
Software Development
9 Years Ago
by myk45
…. I set the contents for the html document in the
textbrowser
using the setHtml() function. All I want now is to…
Re: linkactivated signal with qlabel???
Programming
Software Development
14 Years Ago
by explorepython
… windows default.. [CODE] self.
textBrowser
= QtGui.QTextBrowser(self.groupBox) self.
textBrowser
.setGeometry(QtCore.QRect(140, 90… self.
textBrowser
.setFrameShape(QtGui.QFrame.NoFrame) self.
textBrowser
.setObjectName("
textBrowser
") self.
textBrowser
.setOpenExternalLinks(True) self.
textBrowser
.setHtml(…
Re: process still runs after programme closed
Programming
Software Development
11 Years Ago
by dr_robert
Hi there, After a night's sleep I answered my own question - the first app wasn't necessary, removed that reference and all OK. Thanks anyway if you read this! Rob
Re: Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by vegaseat
Here is an example how to connect a button to a label ... [code]''' run_button_label1.py a simple loader for .ui XML files generated with PySide Designer the Designer's XML file was saved as "button_label1.ui" it contains a QMainWindow form with a QPushButton and a QLabel select the QPushButton and use the Desiger's "Edit Signals/…
Re: Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by xopenex
Hello Vegaseat! Thanks for editing and commenting on my post... I am going to look into pyside, right after this! I found a tutorial, that seems to have pointed me in the right direction... covers, signals, slots, connections and methods/functions! Here is a link that might be of use to others also! I will post my final code when i finish... …
Re: Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by vegaseat
The PyQT or PySide Designer creates an XML code file with extension .ui that really does not have to be translated to a Python code .py file. I find the the XML file more readable than the Python file you make from it. All you need to write is the UI loader program in Python that loads the forms and widgets and then acts on it. You can quickly …
Re: Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by xopenex
Hello again Vegas Eat! I've been reading up on pyside and trying to install throughout the day... i keep getting error messages... I hope to have it up and running soon, it sounds great! Not that I understand to much about it yet, but i'm imagining it will make developing much smoother for me. I'll keep you updated... thanks again for the …
Re: Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by HiHe
I downloaded the 32 bit version for Python 2.7 from: [url]http://qt-project.org/wiki/PySide_Binaries_Windows[/url] The Windows self installer is called: PySide-1.1.0qt474.win32-py2.7.exe It installs easily without problems.
Re: Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by HiHe
I took vegaseat's sample code and made it even simpler: [code]''' run_form_button_label1.py a simple loader for .ui XML files generated with PySide Designer the Designer's XML file was saved as "form_button_label1.ui" it contains a QWidget form with a QPushButton and a QLabel The QPushButton and QLabel are not connected using the …
Re: Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by xopenex
Thanks HiHe, reinstalled the download from the link you provided and everything went smooth this time! And thanks for revisiting vegaseats code, I would say i'm better with html than python, which actually doesnt say much! LOL Thanks again, im working it!
Re: Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by HiHe
Actually, the ui_to_python translator program spits out rather complex Python code.
Re: Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by HiHe
Just one more example of using PySide and the QT Designer program can be found here: [url]http://www.daniweb.com/software-development/python/threads/191210/1777652#post1777652[/url]
Re: Changing Window Frames in PyQt
Programming
Software Development
9 Years Ago
by vegaseat
Check QMdiArea in the manual.
Re: Program has stopped working with advent of a PyQt GUI. Seeking advice.
Programming
Software Development
14 Years Ago
by vegaseat
My guess is that [B]time.sleep(2)[/B] interferes with the event-loop of PyQT. You may have to use QTimer to accomplish your delay.
Re: Program has stopped working with advent of a PyQt GUI. Seeking advice.
Programming
Software Development
14 Years Ago
by Stev0
That didn't work. I removed the timer code all together, still doing the same thing.
Re: Program has stopped working with advent of a PyQt GUI. Seeking advice.
Programming
Software Development
14 Years Ago
by vegaseat
Hard to guess without knowing the content of the designer .ui file.
Re: Program has stopped working with advent of a PyQt GUI. Seeking advice.
Programming
Software Development
14 Years Ago
by Stev0
[QUOTE=vegaseat;1187958]Hard to guess without knowing the content of the designer .ui file.[/QUOTE] Actually you were right about the Qtimer thing. It wasn't working without any timer in it. I put the Qtimer in just to see what would happen...at least I'm getting Qtimer related syntax errors now, and it is iterating the IP addresses correctly now…
Re: QTextBrowser doesn´t display image from html file
Programming
Software Development
9 Years Ago
by mike_2000_17
If you look at the [documentation for setHtml function](http://qt-project.org/doc/qt-4.8/qwebview.html#setHtml), you will see that it has a second parameter (defaulted in your case) to specify the base URL (or file path) from which to get any external objects (stylesheets or images) referenced in the html. Here is a quote of the reference: "…
Re: QTextBrowser doesn´t display image from html file
Programming
Software Development
9 Years Ago
by myk45
Hello Mike, Thanks for the reply. But the sethtml() function i'm using here is the one specified for QTextDocument and it does not take any second parameter. Since QtextBrowser derives from this it will use th same sethtml() method so there is no specifying of url.
Re: QTextBrowser doesn´t display image from html file
Programming
Software Development
9 Years Ago
by NathanOliver
When you open the HTML document in your browser does it show the image? Where is the image located relative to the HTML document? I have not used Qt but doing some basic googling it looks like you might need to use `QTextDocument::loadResource` to added images to the document.
Re: qt fetch the url of a html
Programming
Software Development
9 Years Ago
by richieking
1. Show your code 2. Can you tell us what you intend to do with the url link later? eg. download an image file etc...
Re: qt fetch the url of a html
Programming
Software Development
9 Years Ago
by mike_2000_17
According to the documentation, the `setHtml()` function sets the html data directly (as a QString containing the html code), and you can use `toHtml()` to retrieve that html code later on. If you got an html page from some URL and you dumped the html source code from that page into a QString that you passed to the `setHtml()` function, how could …
Re: qt fetch the url of a html
Programming
Software Development
9 Years Ago
by myk45
Hi Mike, Thank you for the information.I did read the documentation before posting this thread. I did not get a proper solution to it so I posted this query. In my case I have a huge QString that is passed to setHtml() to display the html document. I donot have any path or url using which I do the setSource(). So If I have to reference the links …
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC