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

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

Link to comment

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

Link to comment
  • 2 weeks later...

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!

Link to comment
  • 1 month later...
  • 1 month later...

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?

Link to comment

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.

Link to comment
  • 4 weeks later...
  • 5 months later...
  • 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...