Jump to content

Qt to Lua - Create your MTA GUI outside of MTA


Kayl

Recommended Posts

  • Replies 88
  • Created
  • Last Reply

Top Posters In This Topic

Posted

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).

Posted

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

2w4fg5u.png

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

  • 2 weeks later...
Posted

Oh no it's Garry!

You looking at QT to lua? I hope Garry's mod can make GUIs like this too. :D

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!

  • 1 month later...
  • 1 month later...
Posted

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?

Posted

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.

  • 4 weeks later...
  • MTA Team
Posted

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 :roll:

  • 5 months later...
  • MTA Team
Posted
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.

  • 5 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...