Results 1 to 3 of 3

Thread: How to design one new browser(not for HTML) with PyQt

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Platforms
    Unix/X11

    Default How to design one new browser(not for HTML) with PyQt

    Hi,my friends and i plan to develop one new web designing language(just for practice,have no plan to popularize it yet now) and we also need to design one small new browser for our new language(using PyQt under linux).we plan to do like this:
    1.divide contents of the web page into several parts and each part is put into one widget(Text Edit for text and Label for picture)
    2.using the layout of QT to layout the contents of the web page(widgets)
    Our problem is that when the widgets is out of the range of the mainwindow,the mainwindow doesn't has scroll bar.
    we try to use the ScrollArea and put the widgets in it but we find that its the widgets that get the scroll bar not the mainwindow(just as the picture in attachments shows)
    then what should we do to make the mainwindow has one scroll bar when theres too many widgets on it?just like the common browser does.
    thanks
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to design one new browser(not for HTML) with PyQt

    Place a QScrollArea as the central widget of the main window (or inside the central widget in case you are using Designer - and don't forget about layouts) and place all your widgets inside this scroll area (again remember about layouts).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2010
    Posts
    2
    Qt products
    Platforms
    Unix/X11

    Default Re: How to design one new browser(not for HTML) with PyQt

    Quote Originally Posted by wysota View Post
    Place a QScrollArea as the central widget of the main window (or inside the central widget in case you are using Designer - and don't forget about layouts) and place all your widgets inside this scroll area (again remember about layouts).
    Thanks,ill try

Similar Threads

  1. Upgrading from PyQt 4.5 to PyQt 4.7
    By RogerCon in forum Installation and Deployment
    Replies: 0
    Last Post: 14th July 2010, 18:52
  2. Replies: 3
    Last Post: 5th October 2008, 23:41
  3. Web browser on Mac OS
    By pkloc in forum Qt Programming
    Replies: 2
    Last Post: 22nd March 2007, 01:21
  4. html browser!!
    By Seema Rao in forum Qt Programming
    Replies: 15
    Last Post: 12th May 2006, 09:24
  5. Need Basic html Browser
    By awalesminfo in forum Newbie
    Replies: 6
    Last Post: 21st March 2006, 17:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.