Results 1 to 20 of 104

Thread: [DevQt] New versions, feature requests and bug reports

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    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: Bumblebees on the road again!

    Quote Originally Posted by fullmetalcoder
    What do you mean about the font????
    It is ugly, so I want to change it
    It worked flawlessly on my system and I can't figure out what wrong stuff could happen!
    Well... If you want others to use it, it has to work for them too.

    Icons smaller than others? Hum... well... I don't understand what you mean!!!
    Exactly the thing I said -- some icons in the toolbar are smaller than other icons in the toolbar.

    What mess occurs for the column-row indicator? Do you mean that, sometimes, the numbers given in the status bar don't correspond to the line and/or column pointed by the mouse cursor?
    No. Often the indicator is not redrawn properly and the app ends up in having two indicators drawn one over the other cluttering themselves (and displaying different data).

  2. #2
    Join Date
    Feb 2006
    Location
    Österreich
    Posts
    35
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Bumblebees on the road again!

    Quote Originally Posted by wysota
    No. Often the indicator is not redrawn properly and the app ends up in having two indicators drawn one over the other cluttering themselves (and displaying different data).
    I didn't compile it yet (I was too lazy to get around to updating to 4.x--but doing it now as we speak just for this program!--and it doesn't make on 3.3), but looking at the code from the command line it looks like the column and row strings are painted to the same widget in the status bar. I find it's easier just to create two permanent textLabel widgets to add to the statusbar, then update the text of each textLabel when I need to rather than worry about handling strings and calling the statusbar updater. That way the widget will manage its own growing and shrinking without the two strings overlapping one another or having any "accidents."

    An example in your initializer function might be:

    QLabel *tlCurrCol = new QLabel( "Column ", this);
    QLabel *tlCurrRow = new QLabel( "Row ", this);
    statusBar()->addWidget(tlCurrCol, 0, TRUE);
    statusBar()->addWidget(tlCurrRow, 0, TRUE);


    then in the mouseEvent, rather than concatenating the string "Column " with some number and "Row " with some number then calling statusChanged() I can just do this:

    tlCurrCol->setText("Column " + QString::number(x, 10));
    tlCurrRow->setText("Row " + QString::number(y, 10));


    And because they are widgets rather than a string, the statusbar will automatically reflect the change without me having to do anything else. And I am lazy, so that's always the best solution for me.

    Again, sorry if that code isn't valid. It should be (I looked at something similar I did and just changed the variable names). I can't test it before posting because I'm currently building version 4.
    My philosophy is: If you can use a free, open-source alternative: do it. And if you can't, pretend it's free and open-source and hope you don't get caught.

  3. #3
    Join Date
    Jan 2006
    Posts
    132
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs up Re: Bumblebees on the road again!

    This a interesting project, allthough it might not be easy to compete with all the other IDE's allready available as others have mentioned before. I'm currently also creating a IDE, but for script programming with QSA. One may think WTH is that good for because there is allready a IDE included in QSA. Well the original just did not to suit my needs good enough, scripting is a big part of my past and future projects and I will be using the IDE many many hours in the next few years, so I just started creating a "better" one

    So good luck with this project, maybe I can contribute something in case there is need for help.
    Attached Images Attached Images
    Last edited by seneca; 11th February 2006 at 16:04.

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.