Opening mainwindow.ui in Windows strange error..



  • So i was having a qt project in Ubuntu, i copied to Windows 7, and when i try to open mainwindow.ui

    !http://i.imgur.com/uM9OT.png(image)!


  • Moderators

    You'll need to provide a little more information than that, I'm afraid.



  • Hmm, maybe you didn't set any text in a MessageBox??
    Like mlong says, more info is needed, now it is just guessing.


  • Moderators

    What is the app supposed to look like? Is there a message box in the Ubuntu app?



  • Hello sorry.. i am trying to open mainwindow.ui at the designer.. not debug the application.. the debugging works perfect.. do you want me to record it and upload at yt?

    Qt Creator 2.4.1
    Based on Qt 4.7.4 (32 bit)
    Windows 7 32 bit




  • Moderators

    Can you post the .ui file?

    Edit to add:

    Just had a thought... what happens when you open the .ui in designer, not creator?



  • Sure, "here":http://www.mediafire.com/?a5mabafs9s302c2

    edit: i am not familiar with windows, so i can't open it with qt designer only, how can i?



  • Anyone? Does the ui have something or just Windows is the crapiest OS in the world?



  • There is no difference in using Qt Designer on any operating system. Start Designer and open your UI file.



  • [quote author="Volker" date="1348657686"]There is no difference in using Qt Designer on any operating system. Start Designer and open your UI file.[/quote]

    well that's what i say.. there is no difference.. i open qt creator, i try to open the ui file, and the messagebox in the 1st post appears.. why, what can i do to solve this?

    edit: does this help u in order for me to solve the problem?
    !http://i.imgur.com/ek8mK.png(1)!



  • [quote author="Leon" date="1348658317"][quote author="Volker" date="1348657686"]There is no difference in using Qt Designer on any operating system. Start Designer and open your UI file.[/quote]

    well that's what i say.. there is no difference.. i open qt creator, i try to open the ui file, and the messagebox in the 1st post appears.. why, what can i do to solve this?
    [/quote]

    Use Qt Designer to remove the button or whatever manipulation you need to do. Once you're done, save the file and recompile your project.



  • I am newbie in windows.. i can't open the qt designer.. could you help me?

    !http://i.imgur.com/2Tx3Q.jpg(123)!



  • Can you share the offending .ui file somehow? Perhaps upload it somewhere where we can download it from?



  • It should be somewhere in the directory where you have installed Qt in. Probably there should be entries in the start menu too. As I always use self compiled Qt libs, I cannot assist further where to look. It depends on whether you use the libs or the SDK, too.



  • [quote author="Andre" date="1348659200"]Can you share the offending .ui file somehow? Perhaps upload it somewhere where we can download it from?[/quote]

    "here":http://www.mediafire.com/?a5mabafs9s302c2

    [quote author="Volker" date="1348659219"]It should be somewhere in the directory where you have installed Qt in. Probably there should be entries in the start menu too. As I always use self compiled Qt libs, I cannot assist further where to look. It depends on whether you use the libs or the SDK, too.[/quote]

    i can't find anything in C:\Program Files... as said , i am not familiar with windows

    Should i download an SDK?



  • [quote author="Leon" date="1348659438"][quote author="Andre" date="1348659200"]Can you share the offending .ui file somehow? Perhaps upload it somewhere where we can download it from?[/quote]

    "here":http://www.mediafire.com/?a5mabafs9s302c2
    [/quote]
    It loads without an issue here.
    [quote]
    [quote author="Volker" date="1348659219"]It should be somewhere in the directory where you have installed Qt in. Probably there should be entries in the start menu too. As I always use self compiled Qt libs, I cannot assist further where to look. It depends on whether you use the libs or the SDK, too.[/quote]

    i can't find anything in C:\Program Files... as said , i am not familiar with windows

    Should i download an SDK?*

    [/quote]

    We can't guess where you installed Qt, and how. I think the default location is something like C:\QtSdk
    I found a designer.exe in
    Desktop\Qt<version>\bin under my QtSDK directory.



  • well i tried to open designer.exe

    !http://i.imgur.com/aYAqi.png(1)!

    It is in greek and it says: blabla.dll is missing. try reinstalling

    let me download this dll, but anywho qt wan't supposed to have this file on the installation?

    edit: http://stackoverflow.com/questions/4702732/the-program-cant-start-because-libgcc-s-dw2-1-dll-is-missing
    @i believe this is a MinGW/gcc compiler issue@



  • It does have it, just not in the location of the designer.exe. Can't you just open your .ui file directly from QtCreator? Or do you then end up with the empty dialog again?



  • (First: install a full Qt into your machine.)

    Start this first:
    Windows Start Menu >> All Programs >> Qt SDK >> Desktop >> Qt 4.8.1..... (C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\qtenv2.bat)

    And in the opened command line start this:
    c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\designer.exe

    This is the designer (in my machine).



  • [quote author="Andre" date="1348660151"]It does have it, just not in the location of the designer.exe. Can't you just open your .ui file directly from QtCreator? Or do you then end up with the empty dialog again?[/quote]

    yes i end up with the same error in first post



  • [quote author="broadpeak" date="1348660168"](First: install a full Qt into your machine.)

    Start this first:
    Windows Start Menu >> All Programs >> Qt SDK >> Desktop >> Qt 4.8.1..... (C:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\qtenv2.bat)

    And in the opened command line start this:
    c:\QtSDK\Desktop\Qt\4.8.1\mingw\bin\designer.exe

    This is the designer (in my machine).
    [/quote]

    what you mean first install a full qt in your machine.. don't i already have it?



  • [quote author="Leon" date="1348660373"]
    what you mean first install a full qt in your machine.. don't i already have it?
    [/quote]

    Microsoft Windows doesn't contain Qt at all!
    You have to download and install the Qt (https://qt-project.org/downloads) in Windows.



  • [quote author="broadpeak" date="1348660649"]
    [quote author="Leon" date="1348660373"]
    what you mean first install a full qt in your machine.. don't i already have it?
    [/quote]

    Microsoft Windows doesn't contain Qt at all!
    You have to download and install the Qt (https://qt-project.org/downloads) in Windows.[/quote]

    and how can you see screenshots of me using qt if i haven't it installed?
    yes ofcourse i have dowloaded qt from that link..
    your previous solution opens the designer.. but i can't do that everytime i need to edit my ui file..
    i want to have it all in qtcreator...



  • Noone knows a solution?
    Even if i edit the mainwidnow.ui with the designer, nothing will have changed if i debug the application..

    I am forced 3 days now, to go to ubuntu, developer it there and test it in windows.. :/



  • [quote author="Leon" date="1348817613"]Noone knows a solution?
    Even if i edit the mainwidnow.ui with the designer, nothing will have changed if i debug the application..

    I am forced 3 days now, to go to ubuntu, developer it there and test it in windows.. :/[/quote]

    You should tell us, what you did so far. What did you download and what did you install?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.