Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 29 results for
qtextbrowser
- Page 1
QTextBrowser doesn´t display image from html file
Programming
Software Development
9 Years Ago
by myk45
Hi All, I´m using a
QTextBrowser
to display an external html document (and its image resources) …
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 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 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.
Adding forward and back buttons inside a layout
Programming
Software Development
9 Years Ago
by myk45
… right corner of the window to navigate inside the
QTextBrowser
. I'm adding two buttons inside the layout but… _list->setSelectionMode(QAbstractItemView::SingleSelection); _splitter->addWidget(_list);
QTextBrowser
*_helpBrowser = new
QTextBrowser
(_splitter); QPushButton* _homeButton = new QPushButton("home");…
Re: qt fetch the url of a html
Programming
Software Development
9 Years Ago
by mike_2000_17
…()` function, how could it ever be possible for the
QTextBrowser
object to have any idea of where that code came…the URL of the page that you display in the
QTextBrowser
, as [it is explained the documentation](http://qt-…project.org/doc/qt-4.8/
qtextbrowser
.html#source-prop). In summary, [RTFM](http://www.urbandictionary…
Re: linkactivated signal with qlabel???
Programming
Software Development
14 Years Ago
by explorepython
Solved the issue using
QTextBrowser
.. Code snippet is here.. I've set the background color …to the windows default.. [CODE] self.textBrowser = QtGui.
QTextBrowser
(self.groupBox) self.textBrowser.setGeometry(QtCore.QRect(140, 90, 121…
qt desinger (QlistViewitem) and python
Programming
Software Development
15 Years Ago
by klia
…,31)) self.Finish.setObjectName("Finish") self.searchresult = QtGui.
QTextBrowser
(self.centralwidget) self.searchresult.setWindowModality(QtCore.Qt.NonModal) self.searchresult…
linkactivated signal with qlabel???
Programming
Software Development
14 Years Ago
by explorepython
… qlabel but with no luck.. Any ideas.. If you suggest
QTextBrowser
give me a code snippet???
chat programming with PyQt and Socket [Standard Library]
Programming
Software Development
12 Years Ago
by iraj.jelo
…(parent) self.socket() roomLabel = QtGui.QLabel('room') self.browser = QtGui.
QTextBrowser
() self.browser.backwardAvailable self.textEdit = QtGui.QTextEdit() self.textEdit.setMaximumSize…
Python, PyQT, understanding modules, classes, and objects... :)
Programming
Software Development
12 Years Ago
by xopenex
…("Form")) Form.resize(570, 604) self.textBrowser = QtGui.
QTextBrowser
(Form) self.textBrowser.setGeometry(QtCore.QRect(0, 130, 561, 301…
process still runs after programme closed
Programming
Software Development
11 Years Ago
by dr_robert
…) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.textBrowser = QtGui.
QTextBrowser
(self.centralwidget) self.textBrowser.setGeometry(QtCore.QRect(30, 20, 256…
Changing Window Frames in PyQt
Programming
Software Development
9 Years Ago
by silverdust
…;)) self.matricInput.setObjectName(_fromUtf8("matricInput")) self.textBrowser = QtGui.
QTextBrowser
(self.centralwidget) self.textBrowser.setGeometry(QtCore.QRect(565, 191, 161…
qt fetch the url of a html
Programming
Software Development
9 Years Ago
by myk45
… I have a QTreewidget that displays some content in the
QTextBrowser
. I set the contents for the html document in the…
Re: Adding forward and back buttons inside a layout
Programming
Software Development
9 Years Ago
by Banfa
At line 24 remove the `this` because that makes the current class (window/widget) the parent but line 36 tries to make the `_verticalLayout` the parent too and causes the warning since the parent is already set.
Re: chat programming with PyQt and Socket [Standard Library]
Programming
Software Development
12 Years Ago
by Gribouillis
I don't know anything of PyQt, but usually GUI toolkits have special ways of handling threads. Also even in non gui programs, python threads are usually started with the threading module instead of the lower level thread module. Reading this tutorial [url]http://diotavelli.net/PyQtWiki/Threading,_Signals_and_Slots[/url], it seems that subclassing …
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: 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: Changing Window Frames in PyQt
Programming
Software Development
9 Years Ago
by vegaseat
Check QMdiArea in the manual.
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 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