Results 1 to 9 of 9

Thread: General qt days..

  1. #1
    Join Date
    Apr 2008
    Location
    Netherlands, The
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default General qt days..

    Yes attractive subject of this thread heh? So hard to get attention those days..

    Anyways I got a couple of questions regarding QT (4.3.4)

    • I am using Notepad to create my source file's and my UI file's, Then I zip my src folder and qmake -makefile and mingw32-make my src folder to compile, then I take the EXE out of the folder and delete the src folder, Then I unzip my zip with a clean src folder .. All why I do that is because if I do not do that this way, I have a empty debug folder, a release folder with a lot of crap, and some makefile shit. Is there any way to put those generated makefiles, those moc files and those other compiled files in one folder to deleted afterwards after done compiling?
    • Is there any code to disable the maximize button? I gave my code somewhere a variable containing code that is saved in a XML file, Has nothing todo with the maximize button but I want it to get disabled
    • Is there any software or IDE to debug my QT Application? I compile my application without any error's from the command prompt but when I try to open my EXE, it goes wrong, it crashes just without even showing a screen..
    It would be nice if somebody could answer this because I cannot debug my application right now and I cannot continue developing now..

    Thank you, YLess.

  2. #2
    Join Date
    May 2007
    Location
    Lublin, Poland
    Posts
    345
    Thanks
    40
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: General qt days..

    Hi,

    I will be brief:
    Is there any code to disable the maximize button
    yes. See the QtDemo examples about setting window flags. Search the forum for related topics; I am 100% this kind of thread is present.
    Is there any software or IDE to debug my QT Application
    I personally use VS and eclipse for creating and managing Qt related code, but there is a bunch of other good-looking/easy-to-use IDEs. Look at QtCentre homepage or search the forum for related threads.

    The forum contains a lot of useful data. Use it.

    Kacper
    Qt allows you to use everything you want
    wysota
    --------------------------------------------------------------------------------
    #if defined(Q_OS_UNIX) && defined(QT_DEBUG)
    abort(); // trap; generates core dump
    #else
    exit(1); // goodbye cruel world
    #endif

  3. #3
    Join Date
    Apr 2008
    Location
    Netherlands, The
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: General qt days..

    Thank you for your fast response on my questions Kacper, I've searched before but ended up with the online documentation on Trolltech. That states a few things that cleared up my mind.

    Quote Originally Posted by maverick_pol
    yes. See the QtDemo examples about setting window flags. Search the forum for related topics; I am 100% this kind of thread is present.
    I assume that I need to put that code within this slot? (Correct me if I am wrong)

    Qt Code:
    1. void MainWindow::initUI()
    2. {
    3. setWindowTitle("My application");
    4. layout->addWidget(Qt::WindowMinimizeButtonHint);
    5. }
    To copy to clipboard, switch view to plain text mode 
    I did not try my code on my application since my application does crash on opening.

    Quote Originally Posted by maverick_pol
    I personally use VS and eclipse for creating and managing Qt related code, but there is a bunch of other good-looking/easy-to-use IDEs. Look at QtCentre homepage or search the forum for related threads.
    I've seen eclipse and installed it, Tried it olso but I need some QT intergration to eclipse, I've looked on the Trolltech website, but they have the last build on 4.3.3, Can I still use that intergration pack?

    Oh, and by the way, do you have any solution for those builded files that I do not need in my SRC folder, so I do not have to {zip and unzip} every time I want to rebuild. I'd like to have a clean src folder every time i've done compiling. Thanks.

  4. #4
    Join Date
    Oct 2006
    Posts
    279
    Thanks
    6
    Thanked 40 Times in 39 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: General qt days..

    I assume you're working on windows, since you mentioned .exe's.
    If you decide to use Visual Studio Express Edition(2005 or 2008) you get an IDE for free and all your temporary files end up in the "debug" or "release" folder.
    Qt Code:
    1. void MainWindow::MainWindow()
    2. {
    3. setWindowFlags(Qt::WindowMaximizeButtonHint);
    4. }
    To copy to clipboard, switch view to plain text mode 

  5. #5
    Join Date
    Apr 2008
    Location
    Netherlands, The
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: General qt days..

    Thank you Spud, I'll try that code later.

    I get another error in Eclipse while I try to debug my application, where do I know where my error comes up because I do not see any errors?
    Attached Images Attached Images

  6. #6
    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: General qt days..

    Quote Originally Posted by Y-Less View Post
    All why I do that is because if I do not do that this way, I have a empty debug folder, a release folder with a lot of crap, and some makefile shit. Is there any way to put those generated makefiles, those moc files and those other compiled files in one folder to deleted afterwards after done compiling?
    How about just calling make clean or even make distclean?

  7. #7
    Join Date
    Apr 2008
    Location
    Netherlands, The
    Posts
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: General qt days..

    I never trought about that, Thank you both for all kinda good answers.

    If I got any other questions I'll return to the forums

  8. #8
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: General qt days..

    Quote Originally Posted by wysota View Post
    How about just calling make clean or even make distclean?
    Another way is to specify in qmake where your temporary files will be placed. This is what I put in every pro file that I make:

    OBJECTS_DIR = ./build
    RCC_DIR = ./build
    UI_DIR = ./build
    MOC_DIR = ./build

    So all the temporary generated crap gets put into the build directory, so the source code is kept clean, and the release folder just has the exe in it.

  9. #9
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: General qt days..

    Quote Originally Posted by Y-Less View Post
    [*]Is there any software or IDE to debug my QT Application? I compile my application without any error's from the command prompt but when I try to open my EXE, it goes wrong, it crashes just without even showing a screen..[/list]It would be nice if somebody could answer this because I cannot debug my application right now and I cannot continue developing now..

    Thank you, YLess.
    Well some other people have suggested IDEs (VS, Eclipse), but you can also just do poor man's debugging and use qDebug() statements to figure out where your code is crashing. A lot of the time, that's just as fast.

Similar Threads

  1. QGraphicsView general questions
    By sincnarf in forum Qt Programming
    Replies: 5
    Last Post: 15th October 2007, 23:22
  2. to set date and time in the file info of two days back
    By thomasjoy in forum Qt Programming
    Replies: 1
    Last Post: 11th October 2007, 16:54
  3. Few general problems
    By Salazaar in forum Newbie
    Replies: 9
    Last Post: 13th June 2007, 22:44
  4. Video Links to Dey Days 2006
    By sunil.thaha in forum General Discussion
    Replies: 3
    Last Post: 21st January 2007, 18:42
  5. Who is going to visit Trolltech Developer Days in Munich
    By Conel in forum General Discussion
    Replies: 2
    Last Post: 23rd August 2006, 18:54

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.