Results 1 to 2 of 2

Thread: School project using Qt

  1. #1
    Join Date
    May 2012
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default School project using Qt

    So i have to make build and fix development of basic program. I chosed qt creator for this purpose - and i would need some feedback and little help.
    I started making random program which task is to go through years (from 1993 - 1999). I connected it with progressbar (counting years - from 0 - 6). But there is one problem - each value is = 1 % in bar. but as it reaches 6 it should be 100% of progressbar but it is only with value 6% of it .
    Here is example of the GUI:
    Ekrānuzņēmums no 2012-05-06 18:39:47.png

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: School project using Qt

    QProgressBar::setMinimum() and QProgressBar::setMaximum() set the values that correspond to an empty or full progress bar. The maximum is currently set at 100, which is a common value given that progress is often given as percent done. You want to set it to 6 (or convert your step number to a percentage before updating the progress bar).

Similar Threads

  1. haw to ues project ( skin ) with anther project
    By Master Loda in forum Qt Programming
    Replies: 4
    Last Post: 22nd July 2011, 09:58
  2. How to convert QT Project to CMake project?
    By Kevin Hoang in forum Qt Programming
    Replies: 2
    Last Post: 29th March 2011, 10:48
  3. Qt project management - bigger project
    By Peppy in forum Qt Programming
    Replies: 11
    Last Post: 24th December 2010, 14:50
  4. Replies: 1
    Last Post: 4th December 2009, 00:34
  5. 'Big' QT Project for school
    By Sicko in forum Qt Programming
    Replies: 17
    Last Post: 18th December 2006, 06:25

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.