Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Metro-like full-screen browser using PyQT/PySide

I've seen sample code that allows one to use PyQT or PySide with QtWebKit to launch a fullscreen browser. I am not familiar with how Qt works. Is it possible to create a web-browser that emulates a Windows 8 Metro-like UI?

I am looking at the following features:

  • right clicking anywhere brings up a sliding panel
  • hotkey combinations reveal transparent sliding panels

Is this possible?

Short of this, is there a sample PySide code that creates a webbrowser with the corresponding toolbar, url bar, menus, etc ... ?

like image 493
jett Avatar asked Jun 06 '26 19:06

jett


1 Answers

Yes that seems possible.

To get your application to show fullscreen:

mainwindow.setWindowFlags(QtCore.Qt.FramelessWindowHint)
mainwindow.showFullScreen()

Setting up hotkeys and mouse event handling is definitely possible, there are plenty of tutorials online (mouse event handling example).

For the Metro-like look, you can set widgets' style using CSS, examples here.

like image 68
Junuxx Avatar answered Jun 09 '26 09:06

Junuxx



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!