QtBasic

Re: QtBasic

Postby Slowdown » Fri Aug 13, 2010 4:45 am

Hi Henning,

Do you have the latest version ?
c:\Qt\2010.04\qt\lib\QtWebKit4.lib' should be c:\Qt\2010.04\qt\bin\QtWebKit4.lib'

This is the wrong version of Qt
get this one http://get.qt.nokia.com/qt/source/qt-wi ... vs2008.exe
i have C:\Qt\4.6.3\lib\QtWebKitd4.lib 242.984 bytes date 2-6-2010
Rolf perhaps an idea to move to http://www.q7basic.org/forum/index.php ?
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: QtBasic

Postby Henning » Fri Aug 13, 2010 8:09 am

This is the first line in the readme file: This is Qt version 4.6.3.

Seems there are more than one download, I have the full SDK. Not funny if the directory structure is different in different installs of the same version. :cry:

It isn't much posting exept on new versions yet. But I will download that version of Qt, and post new Q's in the Q7 group. Can I use the same login?

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: QtBasic

Postby Slowdown » Fri Aug 13, 2010 9:42 am

Hi Henning,

Had the same problem here, as far as i can recall there are two 4.6.3 versions one for VS2008 and one without the support
for VS2008.
Took me 3 downloads before i had the correct one. (Bernd pointed me into the correct direction). :shock:
Henning wrote:Can I use the same login?

Nope, have to register.

When you start testing and start a new project be careful (bug)
A new project is placed on the desktop
Don't start or compile a new project from the desktop, it will fail almost certainly.
I have made a separate directory in the Examples directory and move the files to that directory.
From there it works.
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: QtBasic

Postby Henning » Fri Aug 13, 2010 9:57 am

Oki, thx for the tip on Qt download and project location.

I do miss the Save Project As in the Files menu...

Hahaha, I managed to NOT register by typing in the wrong characters to verify I'm a human... so I guess I'm not. :D

Still not getting the reason for VC, problems with plugins for DB's. At least in Windows the easiest way to connect is using the DBM's drivers for ODBC.

Will try again.

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: QtBasic

Postby Slowdown » Fri Aug 13, 2010 6:43 pm

Henning wrote:Oki, thx for the tip on Qt download and project location.

I do miss the Save Project As in the Files menu...

Was my first post on the Q7Basic forum, code is saved by the IDE.
I like to have a 'save' and a 'save as' button and i want to choose where i want the code saved.
Hahaha, I managed to NOT register by typing in the wrong characters to verify I'm a human... so I guess I'm not. :D

did it 4 times, then i got readable characters ;)
Still not getting the reason for VC, problems with plugins for DB's. At least in Windows the easiest way to connect is using the DBM's drivers for ODBC.

Bernd's way's are mysterious :D
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: QtBasic

Postby Henning » Sat Aug 14, 2010 11:33 am

Talking about Berndt, he has been off the board for a long time now. Hope nothing serious is up.

Might as well keep it in this thread..

Started my "big" project by creating two of the Forms in QtDesigner. frm_Main w. some 150 Controls on it and frm_Setup with about the same.
Get nothing but errors when Building, so I decided to start small. Created a new proj. one Form, two PushButtons and a TextEdit control.

---------------------------
Error
---------------------------

) expected in line 10 in file MainWindow.QMainWindow

....Text)
Display.Text = String(tmp + 1)
End Signal


Code: Select all
' this is the mainwindow scope

Outlet pbCountDn As QPushButton
Outlet pbCountUp As QPushButton

Outlet Display As QTextEdit

Signal on_pbCountUp_clicked(Checked As Boolean)
  Dim tmp As Integer
  tmp = Integer(Display.Text)     'This is line 10
  Display.Text = String(tmp + 1)
End Signal

Signal on_pbCountDn_clicked(Checked As Boolean)
  Dim tmp As Integer
  tmp = Integer(Display.Text)
  If tmp > 0 Then
    Display.Text = String(tmp - 1)
  End If
End Signal


And the Tab [Outlet (2)], I can clearly see 3...

I feel like beeing on square one *again*

/Henning
Henning
 
Posts: 262
Joined: Mon Feb 09, 2009 12:03 am
Location: Sweden

Re: QtBasic

Postby Slowdown » Sat Aug 14, 2010 12:48 pm

Talking about Berndt, he has been off the board for a long time now. Hope nothing serious is up.

nope, see http://www.kbasic.com/forum/viewtopic.php?f=5&t=672
For your info a few (perhaps more than a few Qt Controls will not work) see the examples Qt Controls.
And perhaps you have found out that you need most of the time to rebuild before executing your code. :( (takes a lot of time)
Q7B should do this by itself.
Will look at your code.
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: QtBasic

Postby Slowdown » Sat Aug 14, 2010 1:17 pm

Hi Henning,

Change,
Code: Select all
Outlet Display As QTextEdit

into
Code: Select all
Outlet Display As QLineEdit


Also change the control on your form.

If you get,
error.tiff
error.tiff (13.41 KiB) Viewed 1496 times

Ignore it, is not an error in your code.
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: QtBasic

Postby Slowdown » Sun Aug 15, 2010 7:12 pm

you found a way in :D
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: QtBasic

Postby berndnoetscher » Mon Aug 16, 2010 6:07 pm

Henning wrote:Hallo Berndt,

Sorry about the requisits for Q7Basic, I don't have and will never install the DotNot Flamework. :cry:

I will try to run it in a VirtualBox to keep the Flamework out of my computer.

Just curious why?

/Henning


Hello Henning,

sorry to trouble you, but the reason is simple:
I spent several days to get mingw (gcc) working with all database driver plugins of Qt, but this is not official available and I didn't get it working. You need to change binary files with a separate tool and so on..., because mysql and postgresql are compiled with VC and not compatible with mingw.

So I decided to get along with VC on Windows. On Mac and Linux it will be gcc, of course. This might change in the future. The previous versions of Q7Basic have been working with mingw only. You see the point?
berndnoetscher
Site Admin
 
Posts: 1059
Joined: Tue Sep 25, 2007 9:37 am

PreviousNext

Return to Anything Else

cron