Showing posts with label Pyqt. Show all posts
Showing posts with label Pyqt. Show all posts

Monday, July 16, 2018

Qt Layout on QMainWindow ( work in pyqt as well )

 


 

Taken from https://stackoverflow.com/questions/1508939/qt-layout-on-qmainwindow as note

You don't have to create a QVBoxLayout manually. Just select your central QWidget and press a make-layout button
https://stackoverflow.com/a/1508954


Add at least one widget on your MainWindow. Then select your window by clicking on it and click on the VerticalLayout Button at the top of QTCreator. You Vertical Layout is automatically added to the central widget and fills all the surface.

https://stackoverflow.com/a/1508969


Saturday, February 18, 2017

LittleNote of Python and pyqt

Convert ui to python ( python27 and pyqt4 )

 C:\Python27\Lib\site-packages\PyQt4\pyuic4.bat C:\Users\LENOVO\PycharmProjects\IgPoster\IgPoster.ui -o C:\Users\LENOVO\PycharmProjects\IgPoster\IgPoster.py

pyinstaller python27 with hook

 python27 "C:\Python27\PyInstaller-3.2.1\pyinstaller.py" --runtime-hook "C:\Users\LENOVO\PycharmProjects\IgPoster_v1.1\rthook_pyqt4.py" "C:\Users\LENOVO\PycharmProjects\IgPoster_v1.1\Login.py" --noconsole --onefile --icon=bg.ico

pyinstaller.py "C:\Users\LENOVO\PycharmProjects\IgPoster_v1.1\Login.py" --noconsole --onefile --icon=bg.ico

pyinstaller "C:\Users\LENOVO\PycharmProjects\IgPoster_v1.1\Login.py" --noconsole --onefile --icon=bg.ico

 

pyqt5 with python 3

C:\python37\Scripts\pyuic5.exe C:\Users\akura\PycharmProjects\text2SpeechGui\main.ui -o C:\Users\akura\PycharmProjects\text2SpeechGui\mainUI.py

C:\python37\Scripts\designer.exe