"Save as" and qt-4.5.0

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

"Save as" and qt-4.5.0

olavgun
Hello,

Diagnosis of the problem in my recent posts:
In the file "file.cpp", approximately at line 391, the QFileDialog getSaveFileName is called:

      QString fn = QFileDialog::getSaveFileName(0, saveDialogTitle,saveDirectory, fl.join(";;"), &selectedFilter);

Just before that the different file-type-filters are defined.
After the call of this function, the program tests for user input, among the most important is the selected file type filter. A long list of "if (selectedFilter==soandso) {} else if (selectedFilter== thisandthat) {  } "
is used to check which file-type is selected.

The point is that the variable "selectedFilter" has no value whatever we select in the QFileDialog. So all the if-test come out false. Nothing is done, no conversion and saving to file is done. This was no problem with qt-4.4. So the fault must be with qt-4.5.0. I have tried the precompiled qt-4.5.0 from fedora 11 (on my fedora 7, no install problems, because dependencies are easily resolved) and I have compiled qt-4.5.0 from source downloaded from qt's home pages (formerly Trolltech).

If befor the call of getSaveFileName I set the value of selectedFilter to fl[9], that is lilypond, no matter what filetype I select in the dialogwindow, a lilypond file is exported.

If this is not a problem for you: where did you get your qt-4.5.0, and how did you compile it? Or am I simply wrong in my diagnosis?

Olav Gundersen

Reply | Threaded
Open this post in threaded view
|

Re: "Save as" and qt-4.5.0

lasconic
Administrator
For Windows on ubuntu (or on windows), I use the binaries from Qt website (the precompiled SDK)

2009/3/28 olavgun <[hidden email]>

Hello,

Diagnosis of the problem in my recent posts:
In the file "file.cpp", approximately at line 391, the QFileDialog getSaveFileName is called:

     QString fn = QFileDialog::getSaveFileName(0, saveDialogTitle,saveDirectory, fl.join(";;"), &selectedFilter);

Just before that the different file-type-filters are defined.
After the call of this function, the program tests for user input, among the most important is the selected file type filter. A long list of "if (selectedFilter==soandso) {} else if (selectedFilter== thisandthat) {  } "
is used to check which file-type is selected.

The point is that the variable "selectedFilter" has no value whatever we select in the QFileDialog. So all the if-test come out false. Nothing is done, no conversion and saving to file is done. This was no problem with qt-4.4. So the fault must be with qt-4.5.0. I have tried the precompiled qt-4.5.0 from fedora 11 (on my fedora 7, no install problems, because dependencies are easily resolved) and I have compiled qt-4.5.0 from source downloaded from qt's home pages (formerly Trolltech).

If befor the call of getSaveFileName I set the value of selectedFilter to fl[9], that is lilypond, no matter what filetype I select in the dialogwindow, a lilypond file is exported.

If this is not a problem for you: where did you get your qt-4.5.0, and how did you compile it? Or am I simply wrong in my diagnosis?

Olav Gundersen


--
View this message in context: http://n2.nabble.com/%22Save-as%22-and-qt-4.5.0-tp2548565p2548565.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------

_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: "Save as" and qt-4.5.0

olavgun

lasconic wrote
For Windows on ubuntu (or on windows), I use the binaries from Qt website
(the precompiled SDK)
Hi,

I have now tried the precompiled SDK for linux. There is no difference, i.e., the call to getSaveFileName does not give back any value to "selectedFilter". So the tests on this on the following lines in file.cpp never gives true, and hence the file is not saved as anything.

So the problem, for me, is still unsolved.

Olav
Reply | Threaded
Open this post in threaded view
|

Re: "Save as" and qt-4.5.0

lasconic
Administrator
I tried to compile musescore on ubuntu 8.04 for linux by make, make install using the qt SDK from qt website.
And I have the same bug, Save as does not work. So indeed, Qt 4.5 seems to behave differently on windows and linux on this matter.
Lasconic

2009/3/29 olavgun <[hidden email]>



For Windows on ubuntu (or on windows), I use the binaries from Qt website
(the precompiled SDK)


Hi,

I have now tried the precompiled SDK for linux. There is no difference, i.e., the call to getSaveFileName does not give back any value to "selectedFilter". So the tests on this on the following lines in file.cpp never gives true, and hence the file is not saved as anything.

So the problem, for me, is still unsolved.

Olav
--
View this message in context: http://n2.nabble.com/%22Save-as%22-and-qt-4.5.0-tp2548565p2551909.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------

_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: "Save as" and qt-4.5.0

wschweer
Administrator
In reply to this post by olavgun
Hi,

this seems to be a weird problem. I cannot reproduce it trying hard with debug
and release compiles using the precompiled version from nokia and the version
supplied by kubuntu repository.
Please can you check that you link the same libs at runtime you used when
compiling mscore? Please try the following:

        - identify which version you are really using by entering
          "which mscore"
      You should see something like "/usr/local/bin/mscore" if you compiled
      the version yourself of "/usr/bin/mscore" if you use the packaged
      version.

        - find out what libraries mscore loads at runtime:
      "ldd /usr/local/bin/mscore"
          This gives a long list of libraries, check for
                ...
                libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb6f65000)
                ...
          This is usually a symbolic link to the real lib, enter
            "ls -l /usr/lib/libQtGui.so.4*"
          to find out.
          The link should point to a lib named libQtGui.so.4.5.0

Regards,
Werner

On Saturday 28 March 2009 11:08:58 olavgun wrote:

> Hello,
>
> Diagnosis of the problem in my recent posts:
> In the file "file.cpp", approximately at line 391, the QFileDialog
> getSaveFileName is called:
>
>       QString fn = QFileDialog::getSaveFileName(0,
> saveDialogTitle,saveDirectory, fl.join(";;"), &selectedFilter);
>
> Just before that the different file-type-filters are defined.
> After the call of this function, the program tests for user input, among
> the most important is the selected file type filter. A long list of "if
> (selectedFilter==soandso) {} else if (selectedFilter== thisandthat) {  } "
> is used to check which file-type is selected.
>
> The point is that the variable "selectedFilter" has no value whatever we
> select in the QFileDialog. So all the if-test come out false. Nothing is
> done, no conversion and saving to file is done. This was no problem with
> qt-4.4. So the fault must be with qt-4.5.0. I have tried the precompiled
> qt-4.5.0 from fedora 11 (on my fedora 7, no install problems, because
> dependencies are easily resolved) and I have compiled qt-4.5.0 from source
> downloaded from qt's home pages (formerly Trolltech).
>
> If befor the call of getSaveFileName I set the value of selectedFilter to
> fl[9], that is lilypond, no matter what filetype I select in the
> dialogwindow, a lilypond file is exported.
>
> If this is not a problem for you: where did you get your qt-4.5.0, and how
> did you compile it? Or am I simply wrong in my diagnosis?
>
> Olav Gundersen


------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: "Save as" and qt-4.5.0

lasconic
Administrator
Some info, I compiled last trunk (1733) on ubuntu 8.04. With Qt4.5 SDK from nokia.

which mscore : /usr/local/bin/mscore

ldd /usr/local/bin/mscore
libQtGui.so.4 => /home/lasconic/qtsdk-2009.01/qt/lib/libQtGui.so.4 (0xb7000000)

ls -l :
/home/lasconic/qtsdk-2009.01/qt/lib/libQtGui.so.4 -> libQtGui.so.4.5.0

So far so good I guess but I can't "save as" or "save a copy" in musicXML for example.
I have no clue why, especially if you can't reproduce.

lasconic


2009/4/3 Werner Schweer <[hidden email]>
Hi,

this seems to be a weird problem. I cannot reproduce it trying hard with debug
and release compiles using the precompiled version from nokia and the version
supplied by kubuntu repository.
Please can you check that you link the same libs at runtime you used when
compiling mscore? Please try the following:

       - identify which version you are really using by entering
         "which mscore"
     You should see something like "/usr/local/bin/mscore" if you compiled
     the version yourself of "/usr/bin/mscore" if you use the packaged
     version.

       - find out what libraries mscore loads at runtime:
     "ldd /usr/local/bin/mscore"
         This gives a long list of libraries, check for
               ...
               libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb6f65000)
               ...
         This is usually a symbolic link to the real lib, enter
           "ls -l /usr/lib/libQtGui.so.4*"
         to find out.
         The link should point to a lib named libQtGui.so.4.5.0

Regards,
Werner

On Saturday 28 March 2009 11:08:58 olavgun wrote:
> Hello,
>
> Diagnosis of the problem in my recent posts:
> In the file "file.cpp", approximately at line 391, the QFileDialog
> getSaveFileName is called:
>
>       QString fn = QFileDialog::getSaveFileName(0,
> saveDialogTitle,saveDirectory, fl.join(";;"), &selectedFilter);
>
> Just before that the different file-type-filters are defined.
> After the call of this function, the program tests for user input, among
> the most important is the selected file type filter. A long list of "if
> (selectedFilter==soandso) {} else if (selectedFilter== thisandthat) {  } "
> is used to check which file-type is selected.
>
> The point is that the variable "selectedFilter" has no value whatever we
> select in the QFileDialog. So all the if-test come out false. Nothing is
> done, no conversion and saving to file is done. This was no problem with
> qt-4.4. So the fault must be with qt-4.5.0. I have tried the precompiled
> qt-4.5.0 from fedora 11 (on my fedora 7, no install problems, because
> dependencies are easily resolved) and I have compiled qt-4.5.0 from source
> downloaded from qt's home pages (formerly Trolltech).
>
> If befor the call of getSaveFileName I set the value of selectedFilter to
> fl[9], that is lilypond, no matter what filetype I select in the
> dialogwindow, a lilypond file is exported.
>
> If this is not a problem for you: where did you get your qt-4.5.0, and how
> did you compile it? Or am I simply wrong in my diagnosis?
>
> Olav Gundersen


------------------------------------------------------------------------------
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: "Save as" and qt-4.5.0

Joachim Ganseman
Hello,

There are a few bugs in the Qt Task Tracker about QFileDialog, amongst
which this one which seems to have been fixed a few days ago:
http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=247734
. Don't know if that's (part of) the problem - and unfortunately, I
don't see any recent snapshots on
http://www.qtsoftware.com/developer/qt-snapshots ...

Joachim


2009/4/7 Lasconic <[hidden email]>:

> Some info, I compiled last trunk (1733) on ubuntu 8.04. With Qt4.5 SDK from
> nokia.
>
> which mscore : /usr/local/bin/mscore
>
> ldd /usr/local/bin/mscore
> libQtGui.so.4 => /home/lasconic/qtsdk-2009.01/qt/lib/libQtGui.so.4
> (0xb7000000)
>
> ls -l :
> /home/lasconic/qtsdk-2009.01/qt/lib/libQtGui.so.4 -> libQtGui.so.4.5.0
>
> So far so good I guess but I can't "save as" or "save a copy" in musicXML
> for example.
> I have no clue why, especially if you can't reproduce.
>
> lasconic
>
>
> 2009/4/3 Werner Schweer <[hidden email]>
>>
>> Hi,
>>
>> this seems to be a weird problem. I cannot reproduce it trying hard with
>> debug
>> and release compiles using the precompiled version from nokia and the
>> version
>> supplied by kubuntu repository.
>> Please can you check that you link the same libs at runtime you used when
>> compiling mscore? Please try the following:
>>
>>        - identify which version you are really using by entering
>>          "which mscore"
>>      You should see something like "/usr/local/bin/mscore" if you compiled
>>      the version yourself of "/usr/bin/mscore" if you use the packaged
>>      version.
>>
>>        - find out what libraries mscore loads at runtime:
>>      "ldd /usr/local/bin/mscore"
>>          This gives a long list of libraries, check for
>>                ...
>>                libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb6f65000)
>>                ...
>>          This is usually a symbolic link to the real lib, enter
>>            "ls -l /usr/lib/libQtGui.so.4*"
>>          to find out.
>>          The link should point to a lib named libQtGui.so.4.5.0
>>
>> Regards,
>> Werner
>>
>> On Saturday 28 March 2009 11:08:58 olavgun wrote:
>> > Hello,
>> >
>> > Diagnosis of the problem in my recent posts:
>> > In the file "file.cpp", approximately at line 391, the QFileDialog
>> > getSaveFileName is called:
>> >
>> >       QString fn = QFileDialog::getSaveFileName(0,
>> > saveDialogTitle,saveDirectory, fl.join(";;"), &selectedFilter);
>> >
>> > Just before that the different file-type-filters are defined.
>> > After the call of this function, the program tests for user input, among
>> > the most important is the selected file type filter. A long list of "if
>> > (selectedFilter==soandso) {} else if (selectedFilter== thisandthat) {  }
>> > "
>> > is used to check which file-type is selected.
>> >
>> > The point is that the variable "selectedFilter" has no value whatever we
>> > select in the QFileDialog. So all the if-test come out false. Nothing is
>> > done, no conversion and saving to file is done. This was no problem with
>> > qt-4.4. So the fault must be with qt-4.5.0. I have tried the precompiled
>> > qt-4.5.0 from fedora 11 (on my fedora 7, no install problems, because
>> > dependencies are easily resolved) and I have compiled qt-4.5.0 from
>> > source
>> > downloaded from qt's home pages (formerly Trolltech).
>> >
>> > If befor the call of getSaveFileName I set the value of selectedFilter
>> > to
>> > fl[9], that is lilypond, no matter what filetype I select in the
>> > dialogwindow, a lilypond file is exported.
>> >
>> > If this is not a problem for you: where did you get your qt-4.5.0, and
>> > how
>> > did you compile it? Or am I simply wrong in my diagnosis?
>> >
>> > Olav Gundersen
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Mscore-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Mscore-developer mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: "Save as" and qt-4.5.0

lasconic
Administrator
I still have this issue. And more users are experiencing it and report
on the forum.
Is there anything to do to help the resolution ?



2009/4/7 Joachim Ganseman <[hidden email]>:

> Hello,
>
> There are a few bugs in the Qt Task Tracker about QFileDialog, amongst
> which this one which seems to have been fixed a few days ago:
> http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=247734
> . Don't know if that's (part of) the problem - and unfortunately, I
> don't see any recent snapshots on
> http://www.qtsoftware.com/developer/qt-snapshots ...
>
> Joachim
>
>
> 2009/4/7 Lasconic <[hidden email]>:
>> Some info, I compiled last trunk (1733) on ubuntu 8.04. With Qt4.5 SDK from
>> nokia.
>>
>> which mscore : /usr/local/bin/mscore
>>
>> ldd /usr/local/bin/mscore
>> libQtGui.so.4 => /home/lasconic/qtsdk-2009.01/qt/lib/libQtGui.so.4
>> (0xb7000000)
>>
>> ls -l :
>> /home/lasconic/qtsdk-2009.01/qt/lib/libQtGui.so.4 -> libQtGui.so.4.5.0
>>
>> So far so good I guess but I can't "save as" or "save a copy" in musicXML
>> for example.
>> I have no clue why, especially if you can't reproduce.
>>
>> lasconic
>>
>>
>> 2009/4/3 Werner Schweer <[hidden email]>
>>>
>>> Hi,
>>>
>>> this seems to be a weird problem. I cannot reproduce it trying hard with
>>> debug
>>> and release compiles using the precompiled version from nokia and the
>>> version
>>> supplied by kubuntu repository.
>>> Please can you check that you link the same libs at runtime you used when
>>> compiling mscore? Please try the following:
>>>
>>>        - identify which version you are really using by entering
>>>          "which mscore"
>>>      You should see something like "/usr/local/bin/mscore" if you compiled
>>>      the version yourself of "/usr/bin/mscore" if you use the packaged
>>>      version.
>>>
>>>        - find out what libraries mscore loads at runtime:
>>>      "ldd /usr/local/bin/mscore"
>>>          This gives a long list of libraries, check for
>>>                ...
>>>                libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb6f65000)
>>>                ...
>>>          This is usually a symbolic link to the real lib, enter
>>>            "ls -l /usr/lib/libQtGui.so.4*"
>>>          to find out.
>>>          The link should point to a lib named libQtGui.so.4.5.0
>>>
>>> Regards,
>>> Werner
>>>
>>> On Saturday 28 March 2009 11:08:58 olavgun wrote:
>>> > Hello,
>>> >
>>> > Diagnosis of the problem in my recent posts:
>>> > In the file "file.cpp", approximately at line 391, the QFileDialog
>>> > getSaveFileName is called:
>>> >
>>> >       QString fn = QFileDialog::getSaveFileName(0,
>>> > saveDialogTitle,saveDirectory, fl.join(";;"), &selectedFilter);
>>> >
>>> > Just before that the different file-type-filters are defined.
>>> > After the call of this function, the program tests for user input, among
>>> > the most important is the selected file type filter. A long list of "if
>>> > (selectedFilter==soandso) {} else if (selectedFilter== thisandthat) {  }
>>> > "
>>> > is used to check which file-type is selected.
>>> >
>>> > The point is that the variable "selectedFilter" has no value whatever we
>>> > select in the QFileDialog. So all the if-test come out false. Nothing is
>>> > done, no conversion and saving to file is done. This was no problem with
>>> > qt-4.4. So the fault must be with qt-4.5.0. I have tried the precompiled
>>> > qt-4.5.0 from fedora 11 (on my fedora 7, no install problems, because
>>> > dependencies are easily resolved) and I have compiled qt-4.5.0 from
>>> > source
>>> > downloaded from qt's home pages (formerly Trolltech).
>>> >
>>> > If befor the call of getSaveFileName I set the value of selectedFilter
>>> > to
>>> > fl[9], that is lilypond, no matter what filetype I select in the
>>> > dialogwindow, a lilypond file is exported.
>>> >
>>> > If this is not a problem for you: where did you get your qt-4.5.0, and
>>> > how
>>> > did you compile it? Or am I simply wrong in my diagnosis?
>>> >
>>> > Olav Gundersen
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Mscore-developer mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by:
>> High Quality Requirements in a Collaborative Environment.
>> Download a free trial of Rational Requirements Composer Now!
>> http://p.sf.net/sfu/www-ibm-com
>> _______________________________________________
>> Mscore-developer mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>>
>>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> Mscore-developer mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/mscore-developer
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: "Save as" and qt-4.5.0

olavgun
In reply to this post by wschweer

wschweer wrote
 Please try the following:

        - identify which version you are really using by entering
          "which mscore"
      You should see something like "/usr/local/bin/mscore" if you compiled
      the version yourself of "/usr/bin/mscore" if you use the packaged
      version.

        - find out what libraries mscore loads at runtime:
      "ldd /usr/local/bin/mscore"
          This gives a long list of libraries, check for
                ...
                libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb6f65000)
                ...
          This is usually a symbolic link to the real lib, enter
            "ls -l /usr/lib/libQtGui.so.4*"
          to find out.
          The link should point to a lib named libQtGui.so.4.5.0

Regards,
Werner
Hi,

Checking this shows that all links and paths OK.

Olav