Results 1 to 6 of 6

Thread: QProgressBar + Mac OS X

  1. #1
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QProgressBar + Mac OS X

    Hi everyone.

    I have a problem with QProgressBar in QTableWidget. It doesn't want to scale
    On Windows it works the right way. I don't know what to do
    Attached Images Attached Images
    • File Type: jpg 1.JPG (5.3 KB, 37 views)
    C++ & AMD forever

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QProgressBar + Mac OS X

    How did you do it? With delegate or cell widget?
    J-P Nurmi

  3. #3
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QProgressBar + Mac OS X

    I did it with setCellWidget method
    C++ & AMD forever

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QProgressBar + Mac OS X

    Well, I would recommend using the delegate approach. It's much more light-weight. Check out the torrent example.
    J-P Nurmi

  5. #5
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: QProgressBar + Mac OS X

    Could you tell me more about this "delegate aproach" ?
    C++ & AMD forever

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QProgressBar + Mac OS X

    Take a look at TorrentViewDelegate::paint() in mainwindow.cpp. This approach makes it possible to render progress bars in item views without need of flooding it full of rather expensive index widgets. Also, there is no need to explicitly maintain geometry of index widgets (which seems to cause problems in your case).
    J-P Nurmi

Similar Threads

  1. QProgressBar busy indicator
    By Michiel in forum Qt Tools
    Replies: 2
    Last Post: 1st August 2007, 16:54
  2. QProgressBar: don't understand in details, help me !!!
    By haconganh in forum Qt Programming
    Replies: 5
    Last Post: 10th May 2007, 08:07
  3. QProgressbar and ... Spacebar
    By RafalR in forum Qt Programming
    Replies: 6
    Last Post: 11th September 2006, 18:40
  4. setOrientation QProgressBar
    By fellobo in forum Qt Tools
    Replies: 4
    Last Post: 15th February 2006, 23:32
  5. QProgressBar & 200%
    By Dmitry in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2006, 11:33

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.