12p Posted October 9, 2010 Posted October 9, 2010 There is a QT thing that makes it. Man, try it ALL before talking.
jyrno42 Posted October 10, 2010 Posted October 10, 2010 And which Qt element is it? I tried both QSlider and QScrollbar, none of those doesn't provide the scrollbar. The scrollbar is not even in the Supported widgets list, so i don't have any idea about the "QT thing that makes it". BTW: I'm not referring to a QScrollArea(guiCreateScrollPane).
Kayl Posted October 15, 2010 Author Posted October 15, 2010 Sorry I didn't visit this forum for a while. Ok I will add quickly: - Text Color for QLabels - Scroll bars (independent from scrollArea) I'll edit this post or post a new one (if there is an answer until then) when it's available. Edit: QtToLua 1.0.6 available. Adds: - Color of QLabels - QScrollBar support Help page updated: http://dkrclan.com/?p=qttolua&large Example resource (MTA 1.1 due to combobox code) updated: http://dkrclan.com/qttolua_data/download/guitest.zip QtToLua 1.0.6: http://dkrclan.com/qttolua_data/download/QtToLua.zip
Xierra Posted October 24, 2010 Posted October 24, 2010 Oh no it's Garry! You looking at QT to lua? I hope Garry's mod can make GUIs like this too. Btw, I need to wait till 1.1 is out, though I know I can take it through nightly build, but a release version is better. You're one step ahead of R3mp's guieditor now, keep going!
dukenukem Posted December 2, 2010 Posted December 2, 2010 Very nice, you created it by microsoft visual studio basic ?
ViCe Posted January 13, 2011 Posted January 13, 2011 I made one window but guys i want to make a bindkey.. ex: if i pressed F5 it shows me the gui that i made. thanks
Kayl Posted January 13, 2011 Author Posted January 13, 2011 Vice > The example resource shows how to show/hide the window with a command. In your code for your own window, simply use https://wiki.multitheftauto.com/wiki/BindKey to bind F5 to your command/function showing the GUI. dukenukem > No. Qt with C++, hence "Qt to Lua".
Kayl Posted January 19, 2011 Author Posted January 19, 2011 From what I see you don't use layouts which might explain a mismatch when going from Qt to MTA, also when you create a new window, choose widget or dialog, mainwindow is useless since menus are not part of MTA. Apart from the layout suggestion, I don't see what the problem could be, could you send me your UI file so I can have a look?
12p Posted January 20, 2011 Posted January 20, 2011 I will add it. However I sent you the UI file. Thanks for the help
Kayl Posted January 20, 2011 Author Posted January 20, 2011 Thank you very much for sending me your file. Thanks to it, I was able to spot the problem. It was a QtToLua bug introduced when the export of scroll bar was created. Scrollbar of scrollareas where also exported as standalone scrollbars when they shouldn't be. I have therefore released version 0.1.7 of QtToLua http://dkrclan.com/qttolua_data/download/QtToLua.zip which fixes the aforementioned bug. I have tested it with your file and it works fine now. You are free to use layouts or not, the problem was not coming from that. Thank you for your feedback which helped me fix this issue.
MTA Team qaisjp Posted February 14, 2011 MTA Team Posted February 14, 2011 Kayl, is it possible to convert (non compiled) LUA script's back to UI? That way we can edit any GUI even if we dont have the UI File. If so, can you make it
CapY Posted July 29, 2011 Posted July 29, 2011 Humm... Is this a QT To Lua error or MTA error? Can i get the download link of that Qt Designer ?
MTA Team qaisjp Posted July 29, 2011 MTA Team Posted July 29, 2011 Humm... Is this a QT To Lua error or MTA error?Image Image Can i get the download link of that Qt Designer ? Don 't requote massive images or such, just get the image.
bandi94 Posted July 31, 2011 Posted July 31, 2011 nice jobb are some bugs ( missing ")" and don't add function name where it need )
MTA Team qaisjp Posted August 1, 2011 MTA Team Posted August 1, 2011 It doesn't make the entire script for you, just the gui needed.
Baseplate Posted August 1, 2011 Posted August 1, 2011 Good Work Kayl Nice Idea and it works fine +100000
CapY Posted January 9, 2012 Posted January 9, 2012 First, that's offtopic, second, I suggest to contact some staff on their IRC channel, #dkr.
DarkLink Posted January 9, 2012 Posted January 9, 2012 Great job dude, congratz! I think the link is down? can u update it again? thanks.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now