Results 1 to 5 of 5

Thread: Is this impossible with PyQt4?

  1. #1
    Join Date
    Jul 2011
    Posts
    16
    Qt products

    Default Is this impossible with PyQt4?

    Hello everyone, I will provide a picture of what I need to be done and let me know if it's possible. Thank you

    What I have done so far is I set the winodw shape using QPixMap, SetMask but it comes out very sharp aliased edges. I saw Spotify's GUI and it looks very smooth, what I concluded is that they hardly even use QT itself, everything they made is from scratch of their own libraries which takes months and years to develop. So I am starting to feel a little down as to what PyQt can actually do here.


  2. #2
    Join Date
    Jul 2009
    Location
    Valladolid, Spain
    Posts
    125
    Thanks
    16
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Is this impossible with PyQt4?

    QSS can get you that UI (or even prettier). Only thing that you'd need "to do yourself" is the close/maximize/minimize buttons (and hide the title bar).

  3. #3
    Join Date
    Jul 2011
    Posts
    16
    Qt products

    Default Re: Is this impossible with PyQt4?

    Quote Originally Posted by alexandernst View Post
    QSS can get you that UI (or even prettier). Only thing that you'd need "to do yourself" is the close/maximize/minimize buttons (and hide the title bar).
    Qt Style Sheets correct?

    If i did use PyQt I would have to make every widget myself. How would i make the file menu? I made a file menu with some paddding, it came out perfect, however towards the top right corner I cant add the close max, minimize buttons, cause nothing can hover over the Menu Bar..

    Do you have any examples of something like this being done with source code available.

    Thank you so much for the reply Alex

  4. #4
    Join Date
    Jul 2011
    Posts
    16
    Qt products

    Default Re: Is this impossible with PyQt4?

    Any help? Please?

    This is very fraustrating, I came into this framework thinking there might be atleast a reference guide, or help..

    My end goal:

    A nice gui like Spotify.

  5. #5
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Is this impossible with PyQt4?

    For the colour and gradients use stylesheets and for round corners ... paint it yourself.
    Basically what You will need to do is overwrite paintevent, resize, and handle title bar with close/max/min buttons. Use setWindowFlags(Qt::FramelessWindowHint); to get "flat surface" and go from there.

    This article will be very helpful for You. AFAIK there is no out of the box solution for this because You will need "embed" that style into Your app with = a loot of sub-classing and doing stuff from scratch yourself.
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

Similar Threads

  1. [PyQt4] PyQt4 + gcin issue
    By fieliapm in forum Installation and Deployment
    Replies: 0
    Last Post: 28th September 2010, 08:04
  2. Replies: 37
    Last Post: 15th July 2009, 22:18
  3. Impossible to get correct widget background color
    By croscato in forum Qt Programming
    Replies: 4
    Last Post: 8th June 2009, 21:42
  4. Replies: 2
    Last Post: 27th April 2009, 15:15
  5. Impossible to build Qt with Gif support.
    By yellowmat in forum Installation and Deployment
    Replies: 4
    Last Post: 29th March 2006, 21:45

Tags for this Thread

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.